From 931a2648cb8ff8083a0af9ea06841d548e4d461b Mon Sep 17 00:00:00 2001 From: Mario Date: Wed, 15 Apr 2015 12:05:06 +1000 Subject: [PATCH] Fix compile --- qcsrc/common/notifications.qc | 2 +- qcsrc/server/vehicles/vehicles.qc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/qcsrc/common/notifications.qc b/qcsrc/common/notifications.qc index b48daec7bc..8af30a9572 100644 --- a/qcsrc/common/notifications.qc +++ b/qcsrc/common/notifications.qc @@ -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; diff --git a/qcsrc/server/vehicles/vehicles.qc b/qcsrc/server/vehicles/vehicles.qc index 0a4eb6f3e2..6d9369d9fe 100644 --- a/qcsrc/server/vehicles/vehicles.qc +++ b/qcsrc/server/vehicles/vehicles.qc @@ -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) -- 2.39.2