Fixes Gamemode Voting & Map Edits (#1937)

* fixes roundtype voting

* keg spawner

* maint bar to box and kinkmates to delta+meta
This commit is contained in:
TalkingCactus
2017-07-07 17:54:53 -04:00
committed by GitHub
parent ff15495f18
commit cb5247d060
7 changed files with 1992 additions and 602 deletions
+7
View File
@@ -113,6 +113,13 @@ SUBSYSTEM_DEF(vote)
var/restart = 0
if(.)
switch(mode)
if("roundtype")
if(SSticker.current_state > GAME_STATE_PREGAME)//Don't change the mode if the round already started.
return message_admins("A vote has tried to change the gamemode, but the game has already started. Aborting.")
GLOB.master_mode = .
SSticker.save_mode(.)
to_chat(world, "<span class='adminnotice'><b>The mode is now: [GLOB.master_mode]</b></span>")
log_admin("Gamemode has been voted for and switched to: [GLOB.master_mode].")
if("restart")
if(. == "Restart Round")
restart = 1