- started refactoring p_map.cpp

- added AActor::Top function to replace the frequent occurences of actor->z + actor->height.
This commit is contained in:
Christoph Oelckers 2016-01-18 00:59:16 +01:00
commit 43314f0c0d
7 changed files with 51 additions and 50 deletions

View file

@ -4158,7 +4158,7 @@ bool DLevelScript::DoCheckActorTexture(int tid, AActor *activator, int string, b
}
else
{
fixed_t z = actor->Z() + actor->height;
fixed_t z = actor->Top();
// Looking through planes from bottom to top
for (i = numff-1; i >= 0; --i)
{