Skip to content

Commit

Permalink
Adds failsafe to stop badmins from breaking intent cyclers
Browse files Browse the repository at this point in the history
  • Loading branch information
Core0verload committed Jan 27, 2017
1 parent 6f2ca06 commit 588fcf8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion code/modules/mob/mob_helpers.dm
Original file line number Diff line number Diff line change
Expand Up @@ -298,8 +298,10 @@ var/static/regex/firstname = new("^\[^\\s-\]+") //First word before whitespace o
a_intent = input
else
var/current_intent = possible_a_intents.Find(a_intent)

if(!current_intent)
return
// Failsafe. Just in case some badmin was playing with VV.
current_intent = 1

if(input == INTENT_HOTKEY_RIGHT)
current_intent += 1
Expand Down

0 comments on commit 588fcf8

Please sign in to comment.