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 b48daec..8af30a9 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 0a4eb6f..6d9369d 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)