]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/mutators/mutator/gamemode_tdm.qc
s/world/NULL/
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / mutators / mutator / gamemode_tdm.qc
index d245721cb8dc5dcf9f19221cc05876fe291ed6ee..787412908513449a6f5c28a81d4a47557ca95023 100644 (file)
@@ -13,7 +13,7 @@ REGISTER_MUTATOR(tdm, false)
        {
                if (time > 1) // game loads at time 1
                        error("This is a game type and it cannot be added at runtime.");
-               InitializeEntity(world, tdm_DelayedInit, INITPRIO_GAMETYPE);
+               InitializeEntity(NULL, tdm_DelayedInit, INITPRIO_GAMETYPE);
 
                ActivateTeamplay();
                SetLimits(autocvar_g_tdm_point_limit, autocvar_g_tdm_point_leadlimit, autocvar_timelimit_override, -1);
@@ -70,7 +70,7 @@ void tdm_SpawnTeam (string teamname, float teamcolor)
 void tdm_DelayedInit(entity this)
 {
        // if no teams are found, spawn defaults
-       if(find(world, classname, "tdm_team") == world)
+       if(find(NULL, classname, "tdm_team") == NULL)
        {
                LOG_TRACE("No \"tdm_team\" entities found on this map, creating them anyway.\n");