mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
Fixed a case where "none" was set as a gamemode by a vote
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user