|
|
@ -541,20 +541,13 @@ string Units::getRaceName(df::unit* unit)
|
|
|
|
return getRaceNameById(unit->race);
|
|
|
|
return getRaceNameById(unit->race);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef _WIN32
|
|
|
|
|
|
|
|
#define THISCALL __thiscall
|
|
|
|
|
|
|
|
#else
|
|
|
|
|
|
|
|
#define THISCALL
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
typedef void (THISCALL *df_unit_physical_description_fn)(df::unit*, string*);
|
|
|
|
|
|
|
|
void df_unit_physical_description(df::unit* unit, string* out_str)
|
|
|
|
void df_unit_physical_description(df::unit* unit, string* out_str)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
static df_unit_physical_description_fn fn =
|
|
|
|
static auto* const fn =
|
|
|
|
reinterpret_cast<df_unit_physical_description_fn>(
|
|
|
|
reinterpret_cast<void(THISCALL *)(df::unit*, string*)>(
|
|
|
|
Core::getInstance().vinfo->getAddress("unit_physical_description"));
|
|
|
|
Core::getInstance().vinfo->getAddress("unit_physical_description"));
|
|
|
|
if (fn)
|
|
|
|
CHECK_NULL_POINTER(fn);
|
|
|
|
fn(unit, out_str);
|
|
|
|
fn(unit, out_str);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
string Units::getDescription(df::unit* unit)
|
|
|
|
string Units::getDescription(df::unit* unit)
|
|
|
|