Fix the zone triggers from not activating.

This commit is contained in:
Marco Cawthorne 2023-01-19 19:28:55 -08:00
parent f14648a7f4
commit d0ebfb8205
Signed by: eukara
GPG Key ID: CE2032F0A2882A22
4 changed files with 6 additions and 7 deletions

View File

@ -19,7 +19,7 @@ class CSGameRules:CGameRules
virtual void PlayerConnect(NSClientPlayer);
virtual void PlayerDisconnect(NSClientPlayer);
virtual void PlayerKill(NSClientPlayer);
virtual void PlayerPostFrame(NSClientPlayer);
virtual void PlayerPreFrame(NSClientPlayer);
virtual void PlayerDeath(NSClientPlayer);
virtual void PlayerPain(NSClientPlayer);

View File

@ -33,8 +33,11 @@ CSGameRules::BuyingPossible(NSClientPlayer pl)
/* we check what fields have changed over the course of the frame and network
* only the ones that have actually changed */
void
CSGameRules::PlayerPostFrame(NSClientPlayer pp)
CSGameRules::PlayerPreFrame(NSClientPlayer pp)
{
pp.gflags &= ~GF_BUYZONE;
pp.gflags &= ~GF_RESCUEZONE;
pp.gflags &= ~GF_BOMBZONE;
}
void

View File

@ -107,8 +107,7 @@ CSMultiplayerRules::PlayerDeath(NSClientPlayer pl)
void
CSMultiplayerRules::PlayerPreFrame(NSClientPlayer pl)
{
player pp = (player)pl;
super::PlayerPreFrame(pl);
}
void

View File

@ -495,9 +495,6 @@ void
player::ServerInputFrame(void)
{
super::ServerInputFrame();
gflags &= ~GF_BUYZONE;
gflags &= ~GF_RESCUEZONE;
gflags &= ~GF_BOMBZONE;
}
void