Follow-up Comment #1, bug #16534 (project wesnoth):
1) Cause is that the wml variable gamestate_.get_variable("turn_number")
isn't updated from console_handler::do_turn() in menu_events.cpp. I believe
it should only be set in tod_manager::set_turn() and tod_manager::next_turn()
in tod_manager.cpp since there's the C++ equivalent set, instead of at various
other places.
2) Cause is that the variable previous_turn_ from play_controller.hpp is not
updated when doing the turn x command, resulting in new turn and turn <number
the turn has been set to by turn x command> - events being fired to early;
when the next side after the turn x command gets its turn, in
play_controller::do_init_side in playcontroller.cpp.
I believe previous_turn_ should be moved to tod_manager, set there, and
referenced from there.
I discovered other issues along the way:
3) turn end events are not fired for the very last turn before time is over
(other "end" type events probably also)
4) in time over events, $turn_number is the one from the last regular turn,
although the diplayed one in the top bar is one more
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?16534>
_______________________________________________
Nachricht geschickt von/durch Gna!
http://gna.org/
_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs