From: Mario Date: Wed, 15 Apr 2015 02:05:06 +0000 (+1000) Subject: Fix compile X-Git-Tag: xonotic-v0.8.1~84 X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=commitdiff_plain;h=931a2648cb8ff8083a0af9ea06841d548e4d461b Fix compile --- 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)