Skip to content
Permalink
Browse files

Fix error messages beeing shown on pressing cursor keys in various menus

  • Loading branch information...
sapier sapier
sapier authored and sapier committed May 11, 2014
1 parent f76b9d7 commit 90f0859128774fdf270821e53fca5eabc0c5b8bf
Showing with 8 additions and 0 deletions.
  1. +8 −0 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();

0 comments on commit 90f0859

Please sign in to comment.
You can’t perform that action at this time.