Skip to content

Commit

Permalink
Fix the zone triggers from not activating.
Browse files Browse the repository at this point in the history
  • Loading branch information
eukara committed Jan 20, 2023
1 parent f14648a commit d0ebfb8
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/server/gamerules.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
5 changes: 4 additions & 1 deletion src/server/gamerules.qc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions src/server/gamerules_multiplayer.qc
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,7 @@ CSMultiplayerRules::PlayerDeath(NSClientPlayer pl)
void
CSMultiplayerRules::PlayerPreFrame(NSClientPlayer pl)
{
player pp = (player)pl;

super::PlayerPreFrame(pl);
}

void
Expand Down
3 changes: 0 additions & 3 deletions src/shared/player.h
Original file line number Diff line number Diff line change
Expand Up @@ -495,9 +495,6 @@ void
player::ServerInputFrame(void)
{
super::ServerInputFrame();
gflags &= ~GF_BUYZONE;
gflags &= ~GF_RESCUEZONE;
gflags &= ~GF_BOMBZONE;
}

void
Expand Down

0 comments on commit d0ebfb8

Please sign in to comment.