aboutsummaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game.cpp')
-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();