From a0ec7162f2d31a61b13e22042da1ee0635fc52c5 Mon Sep 17 00:00:00 2001 From: Celtic Minstrel Date: Fri, 30 Mar 2018 18:10:08 -0400 Subject: [PATCH] Support force_scroll in [move_units_fake] (same as in [move_unit_fake]) --- src/game_events/action_wml.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/game_events/action_wml.cpp b/src/game_events/action_wml.cpp index 4e467bc82dede..022006b4d5d76 100644 --- a/src/game_events/action_wml.cpp +++ b/src/game_events/action_wml.cpp @@ -401,6 +401,7 @@ WML_HANDLER_FUNCTION(move_units_fake,, cfg) events::command_disabler command_disabler; LOG_NG << "Processing [move_units_fake]\n"; + const bool force_scroll = cfg["force_scroll"].to_bool(); const vconfig::child_list unit_cfgs = cfg.get_children("fake_unit"); size_t num_units = unit_cfgs.size(); std::vector units; @@ -440,7 +441,7 @@ WML_HANDLER_FUNCTION(move_units_fake,, cfg) DBG_NG << "Moving unit " << un << ", doing step " << step << '\n'; path_step[0] = paths[un][step - 1]; path_step[1] = paths[un][step]; - unit_display::move_unit(path_step, units[un].get_unit_ptr()); + unit_display::move_unit(path_step, units[un].get_unit_ptr(), true, map_location::NDIRECTIONS, force_scroll); units[un]->set_location(path_step[1]); units[un]->anim_comp().set_standing(false); }