- fixed: The portal link table was not created when there were no sector portals.

- fixed: P_TryMove could loop endlessly over a list of static portals when there was an error during portal creation.
This commit is contained in:
Christoph Oelckers 2016-03-12 17:43:36 +01:00
commit ae1571158c
4 changed files with 33 additions and 29 deletions

View file

@ -517,7 +517,7 @@ void GLSprite::Process(AActor* thing,sector_t * sector)
if (viewz >= thingpos.z - 2 * FRACUNIT && viewz <= thingpos.z + thing->height + 2 * FRACUNIT)
{
// exclude vertically moving objects from this check.
if (!(thing->velx == 0 && thing->vely == 0 && thing->velz != 0))
if (!(thing->vel.x == 0 && thing->vel.y == 0 && thing->vel.z != 0))
{
if (!gl_FindModelFrame(thing->GetClass(), spritenum, thing->frame, false))
{