mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 11:10:47 +00:00
Couple of fixes for corrupt maps.
git-svn-id: https://svn.eduke32.com/eduke32@1347 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
7c036eb073
commit
5a090e84bc
1 changed files with 3 additions and 1 deletions
|
@ -2082,6 +2082,8 @@ static void polymer_updatewall(int16_t wallnum)
|
|||
wal = &wall[wallnum];
|
||||
nwallnum = wal->nextwall;
|
||||
sec = §or[sectorofwall(wallnum)];
|
||||
if (sec->wallptr > wallnum)
|
||||
return; // the map is horribly corrupt
|
||||
w = prwalls[wallnum];
|
||||
s = prsectors[sectorofwall(wallnum)];
|
||||
invalid = s->invalidid;
|
||||
|
@ -2639,7 +2641,7 @@ static void polymer_computeplane(_prplane* p)
|
|||
}
|
||||
i+= 1;
|
||||
}
|
||||
while (i < p->indicescount);
|
||||
while ((i + 2) < p->indicescount);
|
||||
}
|
||||
|
||||
static inline void polymer_crossproduct(GLfloat* in_a, GLfloat* in_b, GLfloat* out)
|
||||
|
|
Loading…
Reference in a new issue