mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-01 18:06:13 +00:00
Fix bug #15429
2010-01-29T03:11:56Z!ai0867@gmail.com forces the Neutral alignment when it isn't overridden by SingleUnitWML, assuming the empty/missing alignment specification to be "invalid". The logic before that commit was also broken, so now we make sure that empty/missing alignment specifications are ignored (they seem to be automatically fixed to inherit the unit type's alignment later in the code).
This commit is contained in:
parent
cf9c0044a7
commit
1061590240
@ -14,6 +14,8 @@ Version 1.7.13+svn:
|
||||
leader (Debian bug #555964)
|
||||
* Fix bug #15382 (Player doesn't get transported to the next scenario)
|
||||
* Fix bug #15391 (Warnings in multiplayer games)
|
||||
* Miscellaneous and bug fixes:
|
||||
* Fix bug #15429 (Units created by WML can only get the Neutral alignment)
|
||||
|
||||
Version 1.7.13-1.8beta6:
|
||||
* AI:
|
||||
|
@ -26,6 +26,9 @@ Version 1.7.13-1.8beta6:
|
||||
* User interface:
|
||||
* Fold several player groups by default in the lobby.
|
||||
|
||||
* Miscellaneous and bugfixes:
|
||||
* Fix WML-generated units receiving only the Neutral alignment.
|
||||
|
||||
|
||||
Version 1.7.12-1.8beta5:
|
||||
* Campaigns:
|
||||
|
@ -492,7 +492,7 @@ unit::unit(unit_map* unitmap, const config& cfg,
|
||||
alignment_ = unit_type::NEUTRAL;
|
||||
} else if(cfg["alignment"]=="chaotic") {
|
||||
alignment_ = unit_type::CHAOTIC;
|
||||
} else {
|
||||
} else if(cfg["alignment"]!="") {
|
||||
alignment_ = unit_type::NEUTRAL;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user