[Commits] [wesnoth/wesnoth] 3b1579: fix a check in move_unit
GitHub
noreply at github.com
Sat Oct 18 19:56:36 UTC 2014
Branch: refs/heads/1.12
Home: https://github.com/wesnoth/wesnoth
Commit: 3b1579c6f7707f52045c7bc127611922baf87372
https://github.com/wesnoth/wesnoth/commit/3b1579c6f7707f52045c7bc127611922baf87372
Author: Chris Beck <render787 at gmail.com>
Date: 2014-10-14 (Tue, 14 Oct 2014)
Changed paths:
M data/lua/wml-tags.lua
Log Message:
-----------
fix a check in move_unit
The logic is supposed to be, if (x,y) == (prev_x, prev_y), then
skip the "find_vacant_hex" function because we don't have to move.
Instead we effectively had, if (x == prev_x OR y == prev_y), then
we can skip the check.
This revises a commit
72f138c54414bc0349def0271ec1ccbad984a28b
in the hopes to fix a bug reported here:
http://forums.wesnoth.org/viewtopic.php?f=4&t=41084
Commit: 8c6297be7d482fa30f5e9ddec77854a350e73ec8
https://github.com/wesnoth/wesnoth/commit/8c6297be7d482fa30f5e9ddec77854a350e73ec8
Author: Chris Beck <beck.ct at gmail.com>
Date: 2014-10-18 (Sat, 18 Oct 2014)
Changed paths:
M data/lua/wml-tags.lua
Log Message:
-----------
Merge pull request #299 from cbeck88/move_unit_bug
fix a check in move_unit
Compare: https://github.com/wesnoth/wesnoth/compare/a914c93db777...8c6297be7d48
More information about the Commits
mailing list