mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-13 11:43:31 +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)
|
/world/proc/save_mode(var/the_mode)
|
||||||
var/F = file("data/mode.txt")
|
var/F = file("data/mode.txt")
|
||||||
fdel(F)
|
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
|
F << the_mode
|
||||||
else
|
else
|
||||||
F << "traitor" // Default mode, in case of errors
|
F << "traitor" // Default mode, in case of errors
|
||||||
|
|||||||
Reference in New Issue
Block a user