]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
fix some more bad !string uses
authorRudolf Polzer <divverent@xonotic.org>
Thu, 3 Jan 2013 20:30:23 +0000 (21:30 +0100)
committerRudolf Polzer <divverent@xonotic.org>
Thu, 3 Jan 2013 20:30:23 +0000 (21:30 +0100)
qcsrc/server/func_breakable.qc
qcsrc/server/mutators/base.qc
qcsrc/server/playerstats.qc

index 9560133bd08b6f3d0e3180b073108eaa66715f53..58e737e58c55fd72de7990f8082d6c334c2727f2 100644 (file)
@@ -240,9 +240,9 @@ void spawnfunc_func_breakable() {
        if(self.count == 0)
                self.count = 1;
 
-       if(!self.message)
+       if(self.message == "")
                self.message = "got too close to an explosion";
-       if(!self.message2)
+       if(self.message2 == "")
                self.message2 = "was pushed into an explosion by";
        if(!self.dmg_radius)
                self.dmg_radius = 150;
index 9be5745cb5e4ec24afbde80bee85c4e58bf94097..368ab589824ef5a66464d99283c7d223184cdf3f 100644 (file)
@@ -101,7 +101,7 @@ float Mutator_Add(mutatorfunc_t func, string name)
        {
                if(name == loaded_mutators[i])
                        return 1; // already added
-               if(!loaded_mutators[i])
+               if not(loaded_mutators[i])
                        j = i;
        }
        if(j < 0)
index 41af3015798d5fc167e97d36c257df040299e3d7..4bcc869ba1f44fa048412ca8dc93461aae79d717 100644 (file)
@@ -146,7 +146,7 @@ void PlayerStats_AddEvent(string event_id)
 
 void PlayerStats_Event(entity e, string event_id, float value)
 {
-       if(!e.playerstats_id || playerstats_db < 0)
+       if((e.playerstats_id == "") || playerstats_db < 0)
                return;
        
        string key;
@@ -338,7 +338,7 @@ void PlayerStats_AddGlobalInfo(entity p)
 {
        if(playerstats_db < 0)
                return;
-       if(!p.playerstats_id || playerstats_db < 0)
+       if((p.playerstats_id == "") || playerstats_db < 0)
                return;
        p.playerstats_addedglobalinfo = TRUE;