More faithful old pushmove implementation

this fixes Daedalus's e3m1 demo
This commit is contained in:
nukeykt 2020-01-26 21:07:43 +09:00 committed by Christoph Oelckers
parent 2f4078d99e
commit dc9b37c847

View file

@ -1663,7 +1663,7 @@ int pushmove(vec3_t *const vect, int16_t *const sectnum,
bad = -1;
k--; if (k <= 0) return bad;
clipupdatesector(vect->vec2, sectnum, walldist);
if (*sectnum < 0) return -1;
if (enginecompatibility_mode == ENGINECOMPATIBILITY_NONE && *sectnum < 0) return -1;
}
else if (bitmap_test(clipsectormap, wal->nextsector) == 0)
addclipsect(wal->nextsector);