Changed the order of which the unit permanent modifiers are evaluated

From: objects then traits then amlas

To: traits then amlas then objects
This commit is contained in:
Benoît Timbert 2007-07-21 18:13:21 +00:00
parent ce296d8ce3
commit fd0d82864f
2 changed files with 4 additions and 1 deletions

View file

@ -14,6 +14,9 @@ Version 1.3.5+svn:
* various code cleanups
* proper handling of description autogeneration for per level [effect] on
level 0 units
* changed the order of which the permanent modifications of a unit are
evaluated to (traits, amlas, objects)
(previous order: objects, traits, amlas)
* updated the copyright info in the source files also made it explicit
Wesnoth is GPL 2 only (Wesnoth was already GPL 2 only)

View file

@ -46,7 +46,7 @@
#define LOG_UT LOG_STREAM(info, engine)
namespace {
const std::string ModificationTypes[] = { "object", "trait", "advance" };
const std::string ModificationTypes[] = { "trait", "advance", "object" };
const size_t NumModificationTypes = sizeof(ModificationTypes)/
sizeof(*ModificationTypes);