mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-11 07:11:39 +00:00
negative array acces. ny00123
git-svn-id: https://svn.eduke32.com/eduke32@803 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
d8ea4c5350
commit
2a78af4558
1 changed files with 4 additions and 2 deletions
|
@ -2462,8 +2462,10 @@ static void parascan(int dax1, int dax2, int sectnum, char dastat, int bunch)
|
|||
{
|
||||
wallnum = thewall[z]; nextsectnum = wall[wallnum].nextsector;
|
||||
|
||||
if (dastat == 0) j = sector[nextsectnum].ceilingstat;
|
||||
else j = sector[nextsectnum].floorstat;
|
||||
if(nextsectnum >= 0) { //else negative array access
|
||||
if (dastat == 0) j = sector[nextsectnum].ceilingstat;
|
||||
else j = sector[nextsectnum].floorstat;
|
||||
}
|
||||
|
||||
if ((nextsectnum < 0) || (wall[wallnum].cstat&32) || ((j&1) == 0))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue