- SW: automatic ->sector() replacements (lots of them)

This commit is contained in:
Christoph Oelckers 2021-11-19 22:03:18 +01:00
parent 5b87370b5e
commit 4266edfa04
21 changed files with 204 additions and 204 deletions

View file

@ -1758,7 +1758,7 @@ void UpdatePlayerUnderSprite(PLAYERp pp)
zdiff = SPRITEp_BOS(over_sp) - water_level_z;
// add diff to ceiling
sp->z = sector[sp->sectnum].ceilingz + zdiff;
sp->z = sp->sector()->ceilingz + zdiff;
u->State = over_u->State;
u->Rot = over_u->Rot;