From e71ab5bf24e9346abf94d5841b2bbb2b02bc9121 Mon Sep 17 00:00:00 2001 From: Tyrann Date: Tue, 21 Aug 2007 23:18:56 +0930 Subject: [PATCH] [PATCH] qbsp: Remove weird check of cTexdata in qbsp.c::ProcessFile Ugh, looks like this extraneous line snuck in with commit 6bb3ad32 While I'm here, I see no reason to zero pWorldEnt->cTexdata just above either. It should already be zero'd memory from the malloc of map.rgEntities. Signed-off-by: Tyrann --- qbsp/qbsp.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/qbsp/qbsp.c b/qbsp/qbsp.c index 1bcf86bf..be0d4c5c 100644 --- a/qbsp/qbsp.c +++ b/qbsp/qbsp.c @@ -267,13 +267,9 @@ ProcessFile(void) numwads = WADList_Init(&wads, wadstring); if (numwads) Message(msgLiteral, "Using default WAD: %s\n", wadstring); - else - pWorldEnt->cTexdata = 0; FreeMem(wadstring, OTHER, strlen(options.szMapName) + 5); } - if (!pWorldEnt->cTexdata) - // init the tables to be shared by all models BeginBSPFile();