]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix some minor problems
authorMario <zacjardine@y7mail.com>
Sat, 20 Dec 2014 05:03:39 +0000 (16:03 +1100)
committerMario <zacjardine@y7mail.com>
Sat, 20 Dec 2014 05:03:39 +0000 (16:03 +1100)
qcsrc/server/g_triggers.qc
qcsrc/server/t_plats.qc

index f4fb67a1bad9a5d5cbdbadd6e4df7094e421fa0c..f203fdf4fa1ce3693f747f109e309fa0d200a70e 100644 (file)
@@ -61,6 +61,7 @@ void SUB_UseTargets()
 //
 // print the message
 //
+       if(self)
        if(IS_PLAYER(activator) && self.message != "")
        if(IS_REAL_CLIENT(activator))
        {
@@ -203,8 +204,8 @@ void multi_use()
 
 void multi_touch()
 {
-       if (!(self.spawnflags & 2))
-               if (!other.iscreature)
+       if(!(self.spawnflags & 2))
+       if(!other.iscreature)
                        return;
 
        if(self.team)
@@ -384,7 +385,7 @@ void counter_use()
        {
                if(IS_PLAYER(activator) && (self.spawnflags & SPAWNFLAG_NOMESSAGE) == 0)
                        Send_Notification(NOTIF_ONE, activator, MSG_CENTER, CENTER_SEQUENCE_COMPLETED);
-                       
+
                self.enemy = activator;
                multi_trigger ();
        }
@@ -2051,9 +2052,9 @@ string trigger_magicear_processmessage_forallears(entity source, float teamsay,
        for(ear = magicears; ear; ear = ear.enemy)
        {
                msgout = trigger_magicear_processmessage(ear, source, teamsay, privatesay, msgin);
-               if (!(ear.spawnflags & 64))
-                       if(magicear_matched)
-                               return msgout;
+               if(!(ear.spawnflags & 64))
+               if(magicear_matched)
+                       return msgout;
                msgin = msgout;
        }
        return msgin;
index 29e57e49783406db480202b2b321c9412cd6b24e..315abe152f50b2d9074b28d1e214fa8d1f199053 100644 (file)
@@ -1176,7 +1176,7 @@ void door_touch()
        if (!(self.owner.dmg) && (self.owner.message != ""))
        {
                if (IS_CLIENT(other))
-                       centerprint(other, self.message);
+                       centerprint(other, self.owner.message);
                play2(other, "misc/talk.wav");
        }
 }