From 15aeca62133eda726cfc76707ffd533ab60b596d Mon Sep 17 00:00:00 2001 From: Albert Iordache Date: Mon, 2 Jan 2012 12:28:35 +0200 Subject: [PATCH] Fixed a case where "none" was set as a gamemode by a vote --- code/game/cellautomata.dm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/game/cellautomata.dm b/code/game/cellautomata.dm index 65432b46fac..3f878ecdfae 100644 --- a/code/game/cellautomata.dm +++ b/code/game/cellautomata.dm @@ -11,7 +11,8 @@ /world/proc/save_mode(var/the_mode) var/F = file("data/mode.txt") fdel(F) - if (length(the_mode) > 0) + if (length(the_mode) > 0 && the_mode != "none") // "None" is the vote set to dead people + // , who can't pick an option in a gamemode vote. F << the_mode else F << "traitor" // Default mode, in case of errors