From: Samual Lenks Date: Sat, 16 Feb 2013 16:22:31 +0000 (-0500) Subject: Fix compile X-Git-Tag: xonotic-v0.7.0~62^2~23^2~205 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=61a640241cf5fe8dd9cfd4a849f385ad40fcba60;p=xonotic%2Fxonotic-data.pk3dir.git Fix compile --- diff --git a/qcsrc/server/mutators/gamemode_ctf.qc b/qcsrc/server/mutators/gamemode_ctf.qc index b631619c9..105aae7dd 100644 --- a/qcsrc/server/mutators/gamemode_ctf.qc +++ b/qcsrc/server/mutators/gamemode_ctf.qc @@ -49,8 +49,7 @@ void ctf_CaptureRecord(entity flag, entity player) else { Local_Notification(MSG_INFO, APP_TEAM_ENT_2(flag, INFO_CTF_CAPTURE_), player.netname); } // write that shit in the database - if(!ctf_captimerecord) - else if(cap_time < cap_record) + if((!ctf_captimerecord) || (cap_time < cap_record)) { ctf_captimerecord = cap_time; db_put(ServerProgsDB, strcat(GetMapname(), "/captimerecord/time"), ftos(cap_time));