From dc35b0e71772c9d20ec7269f1811a3d5510fd5e9 Mon Sep 17 00:00:00 2001 From: GinjaNinja32 Date: Thu, 20 Aug 2015 09:42:48 +0100 Subject: [PATCH] fix wonky diagonal inputs --- code/modules/mob/mob_movement.dm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/code/modules/mob/mob_movement.dm b/code/modules/mob/mob_movement.dm index dbd0e77197b..b1f80ee820b 100644 --- a/code/modules/mob/mob_movement.dm +++ b/code/modules/mob/mob_movement.dm @@ -27,8 +27,8 @@ ..() -/client/proc/client_dir(input) - return turn(input, -dir2angle(dir)) +/client/proc/client_dir(input, direction=-1) + return turn(input, direction*dir2angle(dir)) /client/Northeast() diagonal_action(NORTHEAST) @@ -40,7 +40,7 @@ diagonal_action(SOUTHWEST) /client/proc/diagonal_action(direction) - switch(client_dir(direction)) + switch(client_dir(direction, 1)) if(NORTHEAST) swap_hand() return