URL:
<http://gna.org/bugs/?23314>
Summary: Units movement wrong during side turn events in
replays causes OOS
Project: Battle for Wesnoth
Submitted by: None
Submitted on: Di 24 Feb 2015 01:09:02 UTC
Category: Bug
Severity: 4 - Important
Priority: 5 - Normal
Item Group: Replays
Status: None
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 1.12.0, 1.13-dev
Operating System: all
_______________________________________________________
Details:
Put this event in an scenario while in the normal game it will only fire if
there is a unit that didn't move last turn, it will fire every side turn in a
replay.
The reason is that units movement is reset to soon (before the side turn
event) in the replay (in this line:
https://github.com/wesnoth/wesnoth/blob/0da5b24a76103428181b555bd38c2b6976895db7/src/replay_controller.cpp#L621)
[event]
first_time_only = no
name = "side turn"
[filter_condition]
[have_unit]
side = "$side_number"
formula = "movement_left = total_movement"
[/have_unit]
[/filter_condition]
[message]
message = "there is a unit with full movment left"
speaker = "narrator"
[/message]
[/event]
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?23314>
_______________________________________________
Nachricht gesendet von/durch Gna!
http://gna.org/
_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs