]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix compile
authorMario <zacjardine@y7mail.com>
Wed, 15 Apr 2015 02:05:06 +0000 (12:05 +1000)
committerMario <zacjardine@y7mail.com>
Wed, 15 Apr 2015 02:05:06 +0000 (12:05 +1000)
qcsrc/common/notifications.qc
qcsrc/server/vehicles/vehicles.qc

index b48daec7bcec244b831d8a74129eee9bfae826a8..8af30a95722d8a4642dc389bbb51d4e7e6c7eeab 100644 (file)
@@ -1633,7 +1633,7 @@ void Local_Notification(int net_type, int net_name, ...count)
 
                        if(notif.nent_challow_var && (warmup_stage || (notif.nent_challow_var == 2)))
                        {
-                               switch(cvar_string(sprintf("notification_%s", notif.nent_name)))
+                               switch(cvar(sprintf("notification_%s", notif.nent_name)))
                                {
                                        case 1: found_choice = notif.nent_optiona; break;
                                        case 2: found_choice = notif.nent_optionb; break;
index 0a4eb6f3e2c804707b517be836592783af63f148..6d9369d9fe8731e711409845699e2214a76c437f 100644 (file)
@@ -278,7 +278,7 @@ void vehicles_locktarget(float incr, float decr, float _lock_time)
             (trace_ent.vehicle_flags & VHF_ISVEHICLE) || 
             (trace_ent.turrcaps_flags & TFL_TURRCAPS_ISTURRET) || 
             (trace_ent.takedamage == DAMAGE_TARGETDRONE)
-            ) { trace_ent = world; }
+            )) { trace_ent = world; }
     }
 
     if(self.lock_target == world && trace_ent != world)