[Commits] [wesnoth/wesnoth] 311d7b: Make recruit facing direction deterministic
GitHub
noreply at github.com
Tue May 27 15:30:56 UTC 2014
Branch: refs/heads/master
Home: https://github.com/wesnoth/wesnoth
Commit: 311d7bad807a3e509fd6a17e869c4a776416655d
https://github.com/wesnoth/wesnoth/commit/311d7bad807a3e509fd6a17e869c4a776416655d
Author: Alexander van Gessel <ai0867 at gmail.com>
Date: 2014-05-27 (Tue, 27 May 2014)
Changed paths:
M src/actions/create.cpp
Log Message:
-----------
Make recruit facing direction deterministic
This commit borrows ideas from PR #29
If there are enemies, face towards the closest one (with distance reduced by enemy level)
If you have a leader, face away from him.
Otherwise, face towards the center of the map.
Commit: 4d7de12e4735059384ccf34fed8631bb0303c5b8
https://github.com/wesnoth/wesnoth/commit/4d7de12e4735059384ccf34fed8631bb0303c5b8
Author: Alexander van Gessel <ai0867 at gmail.com>
Date: 2014-05-27 (Tue, 27 May 2014)
Changed paths:
A data/test/scenarios/recruit_facing.cfg
M wml_test_schedule
Log Message:
-----------
Unit tests for deterministic unit facings
Compare: https://github.com/wesnoth/wesnoth/compare/d8cd6be83cc9...4d7de12e4735
More information about the Commits
mailing list