Allow multi-argument image path functions...

...to work in the unit overlays list

Ported from 1.8
This commit is contained in:
Alexander van Gessel 2010-05-24 01:26:35 +01:00
parent 61584994a9
commit 70e4ed8c8a
2 changed files with 2 additions and 1 deletions

View file

@ -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

View file

@ -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();
}