From 02e4bcc03d2d356b3ce2c1cdaee1d87a6b5032b7 Mon Sep 17 00:00:00 2001 From: Erthilo Date: Sat, 23 Jun 2012 15:18:02 +0100 Subject: [PATCH] Compile fixes. --- code/game/vote.dm | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/code/game/vote.dm b/code/game/vote.dm index 9dca6300e7..e4d037fb87 100644 --- a/code/game/vote.dm +++ b/code/game/vote.dm @@ -387,7 +387,7 @@ spawn(config.vote_period * 10) vote.endvote() - world << "\red*** A custom vote has been initiated by [M.key]." + world << "\red*** A custom vote has been initiated by [usr.key]." world << "\red You have [vote.timetext(config.vote_period)] to vote." //log_vote("Voting to [vote.mode ? "change mode" : "restart round"] started by [M.name]/[M.key]") @@ -398,16 +398,16 @@ else C.vote = "default" - if(M) M.vote() + if(usr) usr.vote() return if(vote.mode == 0) - var/answer = alert(M,"Do you want to force an immediate restart? Only do this when there are round-breaking glitches, or risk being banned.","Immediate Reboot?","Yes","No") + var/answer = alert(usr,"Do you want to force an immediate restart? Only do this when there are round-breaking glitches, or risk being banned.","Immediate Reboot?","Yes","No") if(answer == "Yes") vote.instant_restart = 1 - log_admin("[M.key] has initiated an instant reboot vote! This may be banworthy!") - message_admins("[M.key] has initiated an instant reboot vote! This may be banworthy!") + log_admin("[usr.key] has initiated an instant reboot vote! This may be banworthy!") + message_admins("[usr.key] has initiated an instant reboot vote! This may be banworthy!") else vote.instant_restart = 0