From: Mario Date: Thu, 2 Jun 2022 01:05:06 +0000 (+1000) Subject: Fix whitespace inconsistency in the newly added teleportation rule X-Git-Tag: xonotic-v0.8.5~7^2~1^2~7 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=7cd8a0d37697f3f61e9fa8a8c7df098f750788a5;p=xonotic%2Fxonotic-data.pk3dir.git Fix whitespace inconsistency in the newly added teleportation rule --- diff --git a/qcsrc/server/world.qc b/qcsrc/server/world.qc index ca3952097..7e1333eb8 100644 --- a/qcsrc/server/world.qc +++ b/qcsrc/server/world.qc @@ -1089,22 +1089,22 @@ bool MoveToRandomLocationWithinBounds(entity e, vector boundmin, vector boundmax continue; // rule 4: we must "see" some spawnpoint or item - entity sp = NULL; - if(frompos) - { - if((traceline(mstart, e.origin, MOVE_NORMAL, e), trace_fraction) >= 1) - sp = e; - } - if(!sp) - { - IL_EACH(g_spawnpoints, checkpvs(mstart, it), - { - if((traceline(mstart, it.origin, MOVE_NORMAL, e), trace_fraction) >= 1) - { - sp = it; - break; - } - }); + entity sp = NULL; + if(frompos) + { + if((traceline(mstart, e.origin, MOVE_NORMAL, e), trace_fraction) >= 1) + sp = e; + } + if(!sp) + { + IL_EACH(g_spawnpoints, checkpvs(mstart, it), + { + if((traceline(mstart, it.origin, MOVE_NORMAL, e), trace_fraction) >= 1) + { + sp = it; + break; + } + }); } if(!sp) {