X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fmutators%2Fmutator%2Fgamemode_cts.qc;h=bfddc30b01bbbc7439a2fb76ab793e0662db4e41;hb=b9671f63469586007314131f3f53728795c035cd;hp=a308925fba3e11a37e509d8e61c83c870ee7e161;hpb=6e9c81c87d69e23957f16b541acb99bcb9be54bd;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/mutators/mutator/gamemode_cts.qc b/qcsrc/server/mutators/mutator/gamemode_cts.qc index a308925fb..bfddc30b0 100644 --- a/qcsrc/server/mutators/mutator/gamemode_cts.qc +++ b/qcsrc/server/mutators/mutator/gamemode_cts.qc @@ -93,7 +93,7 @@ void cts_ScoreRules() void cts_EventLog(string mode, entity actor) // use an alias for easy changing and quick editing later { if(autocvar_sv_eventlog) - GameLogEcho(strcat(":cts:", mode, ":", ((actor != world) ? (strcat(":", ftos(actor.playerid))) : ""))); + GameLogEcho(strcat(":cts:", mode, ":", ((actor != NULL) ? (strcat(":", ftos(actor.playerid))) : ""))); } void KillIndicator_Think(entity this); @@ -184,7 +184,7 @@ MUTATOR_HOOKFUNCTION(cts, reset_map_global) { float s; - Score_NicePrint(world); + Score_NicePrint(NULL); race_ClearRecords(); PlayerScore_Sort(race_place, 0, 1, 0); @@ -407,7 +407,7 @@ MUTATOR_HOOKFUNCTION(cts, ClientKill) if(player.killindicator && player.killindicator.health == 1) // player.killindicator.health == 1 means that the kill indicator was spawned by CTS_ClientKill { remove(player.killindicator); - player.killindicator = world; + player.killindicator = NULL; ClientKill_Now(player); // allow instant kill in this case return;