From d1224058dd107f042e1fd1171a0b1abe0d4f1ee9 Mon Sep 17 00:00:00 2001 From: Alejandro Mujica Date: Sat, 13 Apr 2019 18:36:38 -0400 Subject: [PATCH] Update monster look direction order #1 --- src/monster.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/monster.cpp b/src/monster.cpp index d50b0fa..d648a01 100644 --- a/src/monster.cpp +++ b/src/monster.cpp @@ -2013,25 +2013,25 @@ void Monster::updateLookDirection() } else { Direction dir = getDirection(); if (offsetx < 0 && offsety < 0) { - if (dir == DIRECTION_SOUTH) { + if (dir == DIRECTION_SOUTH || dir == DIRECTION_NORTH) { newDir = DIRECTION_WEST; } else if (dir == DIRECTION_EAST) { newDir = DIRECTION_NORTH; } } else if (offsetx < 0 && offsety > 0) { - if (dir == DIRECTION_NORTH) { + if (dir == DIRECTION_NORTH || dir == DIRECTION_SOUTH) { newDir = DIRECTION_WEST; } else if (dir == DIRECTION_EAST) { newDir = DIRECTION_SOUTH; } } else if (offsetx > 0 && offsety < 0) { - if (dir == DIRECTION_SOUTH) { + if (dir == DIRECTION_SOUTH || dir == DIRECTION_NORTH) { newDir = DIRECTION_EAST; } else if (dir == DIRECTION_WEST) { newDir = DIRECTION_NORTH; } } else { - if (dir == DIRECTION_NORTH) { + if (dir == DIRECTION_NORTH || dir == DIRECTION_SOUTH) { newDir = DIRECTION_EAST; } else if (dir == DIRECTION_WEST) { newDir = DIRECTION_SOUTH;