Skip to content

Commit

Permalink
Fix error messages beeing shown on pressing cursor keys in various menus
Browse files Browse the repository at this point in the history
  • Loading branch information
sapier authored and sapier committed May 11, 2014
1 parent f76b9d7 commit 90f0859
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/game.cpp
Expand Up @@ -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();
Expand Down

0 comments on commit 90f0859

Please sign in to comment.