[Commits] [wesnoth/wesnoth] 2396cc: Micro AIs: prevent potential conflicts of stored d...
GitHub
noreply at github.com
Tue Apr 15 15:18:59 UTC 2014
Branch: refs/heads/1.12
Home: https://github.com/wesnoth/wesnoth
Commit: 2396ccacb8327ba034815bad27f19808a2474073
https://github.com/wesnoth/wesnoth/commit/2396ccacb8327ba034815bad27f19808a2474073
Author: mattsc <mattsc000 at gmail.com>
Date: 2014-04-15 (Tue, 15 Apr 2014)
Changed paths:
M data/ai/micro_ais/cas/ca_bottleneck_attack.lua
M data/ai/micro_ais/cas/ca_bottleneck_move.lua
M data/ai/micro_ais/cas/ca_goto.lua
M data/ai/micro_ais/cas/ca_messenger_attack.lua
M data/ai/micro_ais/cas/ca_protect_unit_attack.lua
M data/ai/micro_ais/cas/ca_protect_unit_finish.lua
M data/ai/micro_ais/cas/ca_protect_unit_move.lua
M data/ai/micro_ais/cas/ca_simple_attack.lua
Log Message:
-----------
Micro AIs: prevent potential conflicts of stored data
It’s theoretically possible that different Micro AIs’ evaluation
functions store information in the same variable within self.data.
This would only happen if the CAs have the same score and while this
should generally be avoided when setting up a scenario, it is better to
ensure that it cannot cause conflicts (not in the stored data at least,
the MAIs might still interfere with each other in other respects).
More information about the Commits
mailing list