Fix whitespace inconsistency in the newly added teleportation rule
authorMario <mario.mario@y7mail.com>
Thu, 2 Jun 2022 01:05:06 +0000 (11:05 +1000)
committerMario <mario.mario@y7mail.com>
Thu, 2 Jun 2022 01:05:06 +0000 (11:05 +1000)
qcsrc/server/world.qc

index ca395209759edfa394a1d08b5157391239beb559..7e1333eb875a87002ecafca1edcbb85f5df74106 100644 (file)
@@ -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)
                {