mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-06 18:58:05 +00:00
Moved moveto event after sighted
This commit is contained in:
parent
a60d070804
commit
ca9313777e
@ -2160,7 +2160,6 @@ size_t move_unit(game_display* disp, const game_data& gamedata,
|
||||
disp->draw();
|
||||
// Clear display helpers before firing events
|
||||
}
|
||||
game_events::raise("moveto",steps.back());
|
||||
|
||||
|
||||
if ( teams[ui->second.side()-1].uses_shroud() || teams[ui->second.side()-1].uses_fog())
|
||||
@ -2182,6 +2181,9 @@ size_t move_unit(game_display* disp, const game_data& gamedata,
|
||||
game_events::raise(sighted_str,*sight_it,steps.back());
|
||||
}
|
||||
}
|
||||
|
||||
game_events::raise("moveto",steps.back());
|
||||
|
||||
event_mutated |= game_events::pump();
|
||||
|
||||
ui = units.find(steps.back());
|
||||
|
Loading…
x
Reference in New Issue
Block a user