Apply TC to unit sprites in [message]
This commit is contained in:
parent
fa9a394987
commit
2e293fb61d
3 changed files with 3 additions and 2 deletions
|
@ -15,7 +15,7 @@ local function get_image(cfg, speaker)
|
|||
local image = cfg.image
|
||||
|
||||
if speaker and image == nil then
|
||||
image = speaker.__cfg.profile
|
||||
image = speaker.portrait
|
||||
end
|
||||
|
||||
if image == "none" or image == nil then
|
||||
|
|
|
@ -347,6 +347,7 @@ 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_cfg_attrib("__cfg", u.write(cfg); u.get_location().write(cfg));
|
||||
|
||||
return lua_kernel_base::get_lua_kernel<game_lua_kernel>(L).return_unit_method(L, m);
|
||||
|
|
|
@ -137,7 +137,7 @@ bool LuaW_checkvariable(lua_State *L, variable_access_create& v, int n);
|
|||
}
|
||||
|
||||
#define return_string_attrib(name, accessor) \
|
||||
return_cstring_attrib(name, accessor.c_str())
|
||||
return_cstring_attrib(name, (accessor).c_str())
|
||||
|
||||
#define return_int_attrib(name, accessor) \
|
||||
if (strcmp(m, name) == 0) { \
|
||||
|
|
Loading…
Add table
Reference in a new issue