Remove C++ wielded item status text
This clashes with the status text in some games that implement the same thing in Lua
This commit is contained in:
parent
6f87b3855d
commit
a6299e1cb5
@ -914,7 +914,6 @@ private:
|
|||||||
scene::ISceneManager *smgr;
|
scene::ISceneManager *smgr;
|
||||||
bool *kill;
|
bool *kill;
|
||||||
std::string *error_message;
|
std::string *error_message;
|
||||||
std::string wield_name;
|
|
||||||
bool *reconnect_requested;
|
bool *reconnect_requested;
|
||||||
scene::ISceneNode *skybox;
|
scene::ISceneNode *skybox;
|
||||||
PausedNodesList paused_animated_nodes;
|
PausedNodesList paused_animated_nodes;
|
||||||
@ -3951,12 +3950,6 @@ void Game::updateFrame(ProfilerGraph *graph, RunStats *stats, f32 dtime,
|
|||||||
ItemStack selected_item, hand_item;
|
ItemStack selected_item, hand_item;
|
||||||
ItemStack &tool_item = player->getWieldedItem(&selected_item, &hand_item);
|
ItemStack &tool_item = player->getWieldedItem(&selected_item, &hand_item);
|
||||||
camera->wield(tool_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;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user