Fix A_MoveSprite() wrongly reporting sector hit without z change after r3678.

git-svn-id: https://svn.eduke32.com/eduke32@3686 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
helixhorned 2013-04-16 20:08:45 +00:00
parent 6be448c534
commit e2c05cbbae
2 changed files with 3 additions and 3 deletions

View file

@ -1078,8 +1078,8 @@ static inline void getzsofslope(int16_t sectnum, int32_t dax, int32_t day, int32
getzsofslopeptr(&sector[sectnum], dax, day, ceilz, florz);
}
// Is <wal> a red wall in a safe fashion, i.e.
// .nextsector >= 0 iff .nextwall >= 0 ?
// Is <wal> a red wall in a safe fashion, i.e. only if consistency invariant
// ".nextsector >= 0 iff .nextwall >= 0" holds.
static inline int32_t redwallp(const walltype *wal)
{
return (wal->nextwall >= 0 && wal->nextsector >= 0);

View file

@ -524,7 +524,7 @@ int32_t A_MoveSprite(int32_t spritenum, const vec3_t *change, uint32_t cliptype)
}
#endif
}
else if (retval == 0)
else if (change->z != 0 && retval == 0)
retval = 16384+dasectnum;
if (retval == 16384+dasectnum)