]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
minor mutator system fix
authorRudolf Polzer <rpolzer@nb-04.(none)>
Fri, 19 Mar 2010 15:04:19 +0000 (16:04 +0100)
committerRudolf Polzer <rpolzer@nb-04.(none)>
Fri, 19 Mar 2010 15:04:19 +0000 (16:04 +0100)
qcsrc/server/mutators/gamemode_keyhunt.qc

index e03ded434f6c8cdbf04051aa50826b1b8f405de8..e9a0dc7dc463b3e7125e5cb5674db6c8185e35ac 100644 (file)
@@ -1074,6 +1074,8 @@ MUTATOR_DEFINITION(gamemode_keyhunt)
 
        MUTATOR_ONADD
        {
+               if(time > 1) // game loads at time 1
+                       error("This is a game type and it cannot be added at runtime.");
                g_keyhunt = 1;
                kh_Initialize();
        }