Skip to content

Commit 90f0859

Browse files
sapiersapier
sapier
authored and
sapier
committedMay 11, 2014
Fix error messages beeing shown on pressing cursor keys in various menus
1 parent f76b9d7 commit 90f0859

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
 

‎src/game.cpp

+8
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,14 @@ struct LocalFormspecHandler : public TextDest
193193
}
194194
}
195195

196+
// don't show error message for unhandled cursor keys
197+
if ( (fields.find("key_up") != fields.end()) ||
198+
(fields.find("key_down") != fields.end()) ||
199+
(fields.find("key_left") != fields.end()) ||
200+
(fields.find("key_right") != fields.end())) {
201+
return;
202+
}
203+
196204
errorstream << "LocalFormspecHandler::gotText unhandled >" << m_formname << "< event" << std::endl;
197205
int i = 0;
198206
for (std::map<std::string,std::string>::iterator iter = fields.begin();

0 commit comments

Comments
 (0)
Please sign in to comment.