]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix console warning when generator of a team with a bot is not shielded (bots don...
authorterencehill <piuntn@gmail.com>
Sat, 23 Feb 2013 15:10:01 +0000 (16:10 +0100)
committerterencehill <piuntn@gmail.com>
Sat, 23 Feb 2013 15:10:01 +0000 (16:10 +0100)
qcsrc/server/mutators/gamemode_onslaught.qc

index c14817e85129a1be14077c7b7c50eb71746b9d21..318c2b24ef1a143646ecf745bb633b46a4e0a98b 100644 (file)
@@ -417,19 +417,19 @@ void onslaught_generator_think()
                }
                else if (overtime_msg_time)
                        overtime_msg_time = 0;
-        
+
         if(!self.isshielded && self.wait < time)
         {
             self.wait = time + 5;
-            FOR_EACH_PLAYER(e)
+            FOR_EACH_REALPLAYER(e)
             {
                 if(e.team == self.team)
                 {
                     centerprint(e, "^1Your generator is NOT shielded!\n^7Re-capture controlpoints to shield it!");
                     soundto(MSG_ONE, e, CHAN_AUTO, "kh/alarm.wav", VOL_BASE, ATTN_NONE);    // FIXME: Uniqe sound?
-                }                                  
-            }                                              
-        }    
+                }
+            }
+        }
        }
 }