- fixed: Polyobjects could contain segs that weren't flagged as such.

SVN r2081 (trunk)
This commit is contained in:
Christoph Oelckers 2010-01-02 13:17:47 +00:00
parent 435861d671
commit 92b8ac26c0
2 changed files with 2 additions and 0 deletions

View file

@ -1,4 +1,5 @@
January 2, 2010 (Changes by Graf Zahl) January 2, 2010 (Changes by Graf Zahl)
- fixed: Polyobjects could contain segs that weren't flagged as such.
- fixed: Trying to show a popup crashed in the SBARINFO code because of a - fixed: Trying to show a popup crashed in the SBARINFO code because of a
missing NULL pointer check. missing NULL pointer check.
- fixed: The ACS thinker needs its own statnum above all actors. Otherwise - fixed: The ACS thinker needs its own statnum above all actors. Otherwise

View file

@ -1545,6 +1545,7 @@ static void TranslateToStartSpot (int tag, int originX, int originY)
validcount++; validcount++;
for (i = 0; i < po->numsegs; i++, tempSeg++, tempPt++) for (i = 0; i < po->numsegs; i++, tempSeg++, tempPt++)
{ {
(*tempSeg)->bPolySeg = true; // this is not set for all segs
(*tempSeg)->sidedef->Flags |= WALLF_POLYOBJ; (*tempSeg)->sidedef->Flags |= WALLF_POLYOBJ;
if ((*tempSeg)->linedef->validcount != validcount) if ((*tempSeg)->linedef->validcount != validcount)
{ {