]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix compile
authorSamual Lenks <samual@xonotic.org>
Sat, 16 Feb 2013 16:22:31 +0000 (11:22 -0500)
committerSamual Lenks <samual@xonotic.org>
Sat, 16 Feb 2013 16:22:31 +0000 (11:22 -0500)
qcsrc/server/mutators/gamemode_ctf.qc

index b631619c979894f1dbdc22c27240395848ae04e0..105aae7dd5aaba054c61fe8881877aebb4285edc 100644 (file)
@@ -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));