Allow multi-argument image path functions...
...to work in the unit overlays list Ported from 1.8
This commit is contained in:
parent
61584994a9
commit
70e4ed8c8a
2 changed files with 2 additions and 1 deletions
|
@ -85,6 +85,7 @@ Xu , Xu , Qxu , Qxu , Ql , Ql
|
|||
[status]
|
||||
petrified=on
|
||||
[/status]
|
||||
overlays="wesnoth-icon.png~CROP(10,10,20,20)"
|
||||
[/unit]
|
||||
[unit]
|
||||
x,y=14,6
|
||||
|
|
|
@ -294,7 +294,7 @@ unit::unit(const config &cfg, bool use_traits, game_state* state) :
|
|||
underlying_id_ = lexical_cast_default<size_t>(cfg["underlying_id"],0);
|
||||
set_underlying_id();
|
||||
|
||||
overlays_ = utils::split(cfg["overlays"]);
|
||||
overlays_ = utils::paranthetical_split(cfg["overlays"], ',');
|
||||
if(overlays_.size() == 1 && overlays_.front() == "") {
|
||||
overlays_.clear();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue