No map voting at campaign end! Fixes a big issue
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sun, 26 Sep 2010 20:37:30 +0000 (23:37 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sun, 26 Sep 2010 20:37:30 +0000 (23:37 +0300)
data/qcsrc/server/g_world.qc

index 29d56e8e4430b93d9f92e58b972194a6386c5983..a49e2e9fce67e3e6563ccb54573b28b92e4e151f 100644 (file)
@@ -2229,6 +2229,9 @@ void MapVote_Init()
        float i;\r
        float nmax, smax;\r
 \r
+       if(cvar("g_campaign"))\r
+               return;\r
+\r
        MapVote_ClearAllVotes();\r
 \r
        mapvote_count = 0;\r