Update code/game/gamemodes/revolution/revolution.dm (#7686)

This commit is contained in:
deathride58
2018-10-30 22:33:15 -04:00
committed by kevinz000
parent 52ae24a977
commit dd1c7c765e
+4 -1
View File
@@ -26,6 +26,7 @@
var/finished = 0
var/check_counter = 0
var/max_headrevs = 3
var/completioncheckstart
var/datum/team/revolution/revolution
var/list/datum/mind/headrev_candidates = list()
var/end_when_heads_dead = TRUE
@@ -61,6 +62,8 @@
setup_error = "Not enough headrev candidates"
return FALSE
completioncheckstart = world.time + 20 MINUTES
return TRUE
/datum/game_mode/revolution/post_setup()
@@ -114,7 +117,7 @@
/datum/game_mode/revolution/process()
check_counter++
if(check_counter >= 5)
if(!finished)
if(!finished && world.time >= completioncheckstart)
SSticker.mode.check_win()
check_counter = 0
return FALSE