diff options
Diffstat (limited to 'src/game/server/gs_game_ctf.cpp')
| -rw-r--r-- | src/game/server/gs_game_ctf.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/game/server/gs_game_ctf.cpp b/src/game/server/gs_game_ctf.cpp index af97475a..5e3af5c1 100644 --- a/src/game/server/gs_game_ctf.cpp +++ b/src/game/server/gs_game_ctf.cpp @@ -122,13 +122,13 @@ void gameobject_ctf::tick() for(int c = 0; c < MAX_CLIENTS; c++) { - if(players[c].client_id != -1) + if(players[c].client_id == -1) continue; if(players[c].team == fi) - create_sound_global(SOUND_CTF_GRAB_EN, c); + create_sound_global(SOUND_CTF_GRAB_EN, players[c].client_id); else - create_sound_global(SOUND_CTF_GRAB_PL, c); + create_sound_global(SOUND_CTF_GRAB_PL, players[c].client_id); } break; } |