From 499c0981df958643097f96365138df689432e5b4 Mon Sep 17 00:00:00 2001 From: Nathanael Sensfelder Date: Thu, 13 Jun 2019 13:32:43 +0200 Subject: Adds AoO pathfinding & temporary representation. The animation manager does not work correctly though: when a move action has been interrupted, it will rewind like if there was only the last movement part, yet play back all parts, landing the character at the wrong location. --- src/shared/battle-map/BattleMap/Struct/Location.elm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/shared/battle-map/BattleMap/Struct/Location.elm') diff --git a/src/shared/battle-map/BattleMap/Struct/Location.elm b/src/shared/battle-map/BattleMap/Struct/Location.elm index 6b07e90..d3243c2 100644 --- a/src/shared/battle-map/BattleMap/Struct/Location.elm +++ b/src/shared/battle-map/BattleMap/Struct/Location.elm @@ -112,7 +112,7 @@ add_neighborhood_to_set map_width map_height tdist loc set = (List.foldl (\height_mod current_width_result -> let - abs_width_mod = (abs (tdist - height_mod)) + abs_width_mod = (abs (tdist - (abs height_mod))) current_height = (loc.y + height_mod) in if ((current_height < 0) || (current_height >= map_height)) -- cgit v1.2.3-70-g09d2