aboutsummaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorsapier <Sapier at GMX dot net>2014-06-13 20:10:11 +0200
committersapier <Sapier at GMX dot net>2014-06-17 21:27:40 +0200
commitc0e4551249dcc1e09ee09877f136ce12fe359520 (patch)
tree9399e59766f030923c20648e7701b3e65dc9d408 /src/game.cpp
parentcb3b42efe47fcf53527c033654878635c7c3f39c (diff)
downloaddragonfireclient-c0e4551249dcc1e09ee09877f136ce12fe359520.tar.xz
Remove not really used guiTextInputMenu
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp22
1 files changed, 1 insertions, 21 deletions
diff --git a/src/game.cpp b/src/game.cpp
index c2ee7f311..9bbbb5ecf 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -31,7 +31,6 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "guiPasswordChange.h"
#include "guiVolumeChange.h"
#include "guiFormSpecMenu.h"
-#include "guiTextInputMenu.h"
#include "tool.h"
#include "guiChatConsole.h"
#include "config.h"
@@ -2905,26 +2904,7 @@ void the_game(bool &kill, bool random_input, InputHandler *input,
repeat_rightclick_timer = 0;
infostream<<"Ground right-clicked"<<std::endl;
- // Sign special case, at least until formspec is properly implemented.
- // Deprecated?
- if(meta && meta->getString("formspec") == "hack:sign_text_input"
- && !random_input
- && !input->isKeyDown(getKeySetting("keymap_sneak")))
- {
- infostream<<"Launching metadata text input"<<std::endl;
-
- // Get a new text for it
-
- TextDest *dest = new TextDestNodeMetadata(nodepos, &client);
-
- std::wstring wtext = narrow_to_wide(meta->getString("text"));
-
- (new GUITextInputMenu(guienv, guiroot, -1,
- &g_menumgr, dest,
- wtext))->drop();
- }
- // If metadata provides an inventory view, activate it
- else if(meta && meta->getString("formspec") != "" && !random_input
+ if(meta && meta->getString("formspec") != "" && !random_input
&& !input->isKeyDown(getKeySetting("keymap_sneak")))
{
infostream<<"Launching custom inventory view"<<std::endl;