Fixup 601c67d970
Turns out that commit broke TC on unit images in messages since it broke the equality
check in lua_unit.cpp. Added the XBRZ IPF as part of the Lua unit portrait attribute
instead.
I *think* this is the proper place to do it.
(cherry picked from commit fab229b5e8
)
This commit is contained in:
parent
2f031cd810
commit
b7fe28c03e
1 changed files with 3 additions and 1 deletions
|
@ -369,7 +369,9 @@ static int impl_unit_get(lua_State *L)
|
|||
return_string_attrib("variation", u.variation());
|
||||
return_bool_attrib("zoc", u.get_emit_zoc());
|
||||
return_string_attrib("facing", map_location::write_direction(u.facing()));
|
||||
return_string_attrib("portrait", u.big_profile() == u.absolute_image() ? u.absolute_image() + u.image_mods() : u.big_profile());
|
||||
return_string_attrib("portrait", u.big_profile() == u.absolute_image()
|
||||
? u.absolute_image() + u.image_mods() + "~XBRZ(2)"
|
||||
: u.big_profile());
|
||||
return_cfg_attrib("__cfg", u.write(cfg); u.get_location().write(cfg));
|
||||
|
||||
if(luaW_getmetafield(L, 1, m)) {
|
||||
|
|
Loading…
Add table
Reference in a new issue