mirror of
https://github.com/fulpstation/fulpstation.git
synced 2025-12-10 01:57:01 +00:00
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:
@@ -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])")
|
||||
Reference in New Issue
Block a user