develop
Robob27 2023-11-06 23:13:50 -05:00
parent 89428bb343
commit c3b3dda80b
1 changed files with 2 additions and 3 deletions

@ -381,9 +381,8 @@ DEFINE_GET_FOCUS_STRING_HANDLER(dwarfmode)
if (game->main_interface.view_sheets.linking_lever) if (game->main_interface.view_sheets.linking_lever)
newFocusString = baseFocus + "/LinkingLever"; newFocusString = baseFocus + "/LinkingLever";
else if (auto bld = df::building::find(game->main_interface.view_sheets.viewing_bldid)) { else if (auto bld = df::building::find(game->main_interface.view_sheets.viewing_bldid)) {
std::string buildingType = enum_item_key(bld->getType()); newFocusString += '/' + enum_item_key(bld->getType());
newFocusString += '/' + buildingType; if (bld->getType() == df::enums::building_type::Trap) {
if (buildingType == "Trap") {
df::building_trapst* trap = strict_virtual_cast<df::building_trapst>(bld); df::building_trapst* trap = strict_virtual_cast<df::building_trapst>(bld);
newFocusString += '/' + enum_item_key(trap->trap_type); newFocusString += '/' + enum_item_key(trap->trap_type);
} }