]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/command/vote.qc
Clean up some SELFPARAMs
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / command / vote.qc
index 15d27a3ee4dabc3528a769062d32be456c13ceb2..a7d31b0613c17f829a9eab8eb2e20499b220ea7f 100644 (file)
@@ -349,7 +349,7 @@ void reset_map(bool dorespawn)
 
        // Waypoints and assault start come LAST
        FOREACH_ENTITY_ORDERED(IS_NOT_A_CLIENT(it), {
-               if (it.reset2) WITHSELF(it, it.reset2());
+               if (it.reset2) it.reset2(it);
        });
 
        FOREACH_CLIENT(IS_PLAYER(it) && STAT(FROZEN, it), LAMBDA(WITHSELF(it, Unfreeze(it))));
@@ -387,9 +387,8 @@ void reset_map(bool dorespawn)
 }
 
 // Restarts the map after the countdown is over (and cvar sv_ready_restart_after_countdown is set)
-void ReadyRestart_think()
+void ReadyRestart_think(entity this)
 {
-       SELFPARAM();
        restart_mapalreadyrestarted = true;
        reset_map(true);
        Score_ClearAll();