aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsapier <Sapier at GMX dot net>2014-05-11 02:57:47 +0200
committersapier <Sapier at GMX dot net>2014-05-11 02:57:47 +0200
commit90f0859128774fdf270821e53fca5eabc0c5b8bf (patch)
treed8c87be7a7ae00bc0993e3bd4d742d80e5c38406 /src
parentf76b9d724b322875016005763ae8389c3c23e5f1 (diff)
downloadminetest-90f0859128774fdf270821e53fca5eabc0c5b8bf.tar.gz
minetest-90f0859128774fdf270821e53fca5eabc0c5b8bf.tar.bz2
minetest-90f0859128774fdf270821e53fca5eabc0c5b8bf.zip
Fix error messages beeing shown on pressing cursor keys in various menus
Diffstat (limited to 'src')
-rw-r--r--src/game.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/game.cpp b/src/game.cpp
index 8a0aa1776..0b28c7d17 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -193,6 +193,14 @@ struct LocalFormspecHandler : public TextDest
}
}
+ // don't show error message for unhandled cursor keys
+ if ( (fields.find("key_up") != fields.end()) ||
+ (fields.find("key_down") != fields.end()) ||
+ (fields.find("key_left") != fields.end()) ||
+ (fields.find("key_right") != fields.end())) {
+ return;
+ }
+
errorstream << "LocalFormspecHandler::gotText unhandled >" << m_formname << "< event" << std::endl;
int i = 0;
for (std::map<std::string,std::string>::iterator iter = fields.begin();