- started refactoring p_map.cpp
- added AActor::Top function to replace the frequent occurences of actor->z + actor->height.
This commit is contained in:
parent
b735138332
commit
43314f0c0d
7 changed files with 51 additions and 50 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue