Remove C++ wielded item status text

This clashes with the status text in some games that implement the same 
thing in Lua
master
luk3yx 2022-08-14 10:11:50 +12:00
parent 6f87b3855d
commit a6299e1cb5
1 changed files with 0 additions and 7 deletions

View File

@ -914,7 +914,6 @@ private:
scene::ISceneManager *smgr;
bool *kill;
std::string *error_message;
std::string wield_name;
bool *reconnect_requested;
scene::ISceneNode *skybox;
PausedNodesList paused_animated_nodes;
@ -3951,12 +3950,6 @@ void Game::updateFrame(ProfilerGraph *graph, RunStats *stats, f32 dtime,
ItemStack selected_item, hand_item;
ItemStack &tool_item = player->getWieldedItem(&selected_item, &hand_item);
camera->wield(tool_item);
std::string item_desc = selected_item.getDefinition(itemdef_manager).description;
if (wield_name != item_desc) {
m_game_ui->showStatusText(utf8_to_wide(item_desc));
wield_name = item_desc;
}
}
/*