Turn dialog shown for dead sides #4240
Labels
Confirmed
Issues that have been successfully reproduced by at least one developer.
Engine
General game engine issues that do not fit in any other category.
Regression
Issues that were not present in previous releases.
#4188 moved the show_turn_dialog function call up the callstack.
#4230 fixed a regression in #4188. This issue is about another potential regression.
Before #4188, the code was:
wesnoth/src/playsingle_controller.cpp
Lines 366 to 389 in 476c133
wesnoth/src/playsingle_controller.cpp
Lines 460 to 461 in 476c133
It seems that if the condition on line 382 is true, or
skip_next_turn_
is true andend_turn_ != END_TURN_NONE
at entry to play_side_impl, then a turn dialog would not have been shown before #4188, but would be shown now. I have not tested this, only reviewed the source code.skip_next_turn_
can only be set to true by the debug:change_level
command and by the Luawesnoth.end_turn
function.The text was updated successfully, but these errors were encountered: