From 4bb6bfbf791d4d8a3dbc44955a268bd909118025 Mon Sep 17 00:00:00 2001 From: k-bar <92504151+k-bar@users.noreply.github.com> Date: Fri, 24 Jun 2022 16:53:21 +0200 Subject: [PATCH] fix fallen retreat direction bug --- Source/monster.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/monster.cpp b/Source/monster.cpp index f17f28aea..c76b2fb8a 100644 --- a/Source/monster.cpp +++ b/Source/monster.cpp @@ -2553,6 +2553,7 @@ void FallenAi(int i) } } } else if (monster._mgoal == MGOAL_RETREAT) { + monster._mdir = static_cast(monster._mgoalvar2); RandomWalk(i, monster._mdir); } else if (monster._mgoal == MGOAL_ATTACK2) { int xpos = monster.position.tile.x - monster.enemyPosition.x;