Map rotation fixes:

Fixes mutiple rotate operations from breaking the server, map rotation will properly detect rotation operations as well as update operations and abort.
Fixes max pop being treated as minpop
Adds more feedback to admin verbs.
This commit is contained in:
MrStonedOne
2015-10-06 21:12:00 -07:00
parent 29cf9bd265
commit e27e9e8371
5 changed files with 57 additions and 21 deletions

View File

@@ -28,7 +28,12 @@
mapname += "\]"
maprotatechoices[mapname] = VM
var/choosenmap = input("Choose a map to rotate to", "Change Map") as null|anything in maprotatechoices
var/choosenmap = input("Choose a map to change to", "Change Map") as null|anything in maprotatechoices
if (!choosenmap)
return
changemap(maprotatechoices[choosenmap])
ticker.maprotatechecked = 1
var/datum/votablemap/VM = maprotatechoices[choosenmap]
message_admins("[key_name_admin(usr)] is changing the map to [VM.name]([VM.friendlyname])")
log_admin("[key_name(usr)] is changing the map to [VM.name]([VM.friendlyname])")
if (changemap(VM) == 0)
message_admins("[key_name_admin(usr)] has changed the map to [VM.name]([VM.friendlyname])")