diff options
| author | Magnus Auvinen <magnus.auvinen@gmail.com> | 2008-01-17 23:09:49 +0000 |
|---|---|---|
| committer | Magnus Auvinen <magnus.auvinen@gmail.com> | 2008-01-17 23:09:49 +0000 |
| commit | 57c47659930c5e01ae5d3e8cef51c06d28d20508 (patch) | |
| tree | e67a413ec70dbf4562178ad3603619f7b2b825c2 /src/game/server/gs_game_dm.cpp | |
| parent | 253a5639ae170a16055e2c8a76d12335342f6d51 (diff) | |
| download | zcatch-57c47659930c5e01ae5d3e8cef51c06d28d20508.tar.gz zcatch-57c47659930c5e01ae5d3e8cef51c06d28d20508.zip | |
editor update and other stuff
Diffstat (limited to 'src/game/server/gs_game_dm.cpp')
| -rw-r--r-- | src/game/server/gs_game_dm.cpp | 34 |
1 files changed, 1 insertions, 33 deletions
diff --git a/src/game/server/gs_game_dm.cpp b/src/game/server/gs_game_dm.cpp index 98317578..49de6b56 100644 --- a/src/game/server/gs_game_dm.cpp +++ b/src/game/server/gs_game_dm.cpp @@ -5,38 +5,6 @@ void gameobject_dm::tick() { - if(game_over_tick == -1) - { - // game is running - - // gather some stats - int topscore = 0; - int topscore_count = 0; - for(int i = 0; i < MAX_CLIENTS; i++) - { - if(players[i].client_id != -1) - { - if(players[i].score > topscore) - { - topscore = players[i].score; - topscore_count = 1; - } - else if(players[i].score == topscore) - topscore_count++; - } - } - - // check score win condition - if((config.sv_scorelimit > 0 && topscore >= config.sv_scorelimit) || - (config.sv_timelimit > 0 && (server_tick()-round_start_tick) >= config.sv_timelimit*server_tickspeed()*60)) - { - if(topscore_count == 1) - endround(); - else - sudden_death = 1; - } - } - + do_player_score_wincheck(); gameobject::tick(); } - |