- 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

@ -2376,7 +2376,7 @@ void Net_DoCommand (int type, BYTE **stream, int player)
s = ReadString (stream);
if (Trace (players[player].mo->X(), players[player].mo->Y(),
players[player].mo->Z() + players[player].mo->height - (players[player].mo->height>>2),
players[player].mo->Top() - (players[player].mo->height>>2),
players[player].mo->Sector,
vx, vy, vz, 172*FRACUNIT, 0, ML_BLOCKEVERYTHING, players[player].mo,
trace, TRACE_NoSky))