MORTEVIELLE: Silent CID 1063229

This commit is contained in:
Strangerke 2013-08-21 22:12:20 +02:00
parent d0ce04c968
commit 9c3cefa6f0

View File

@ -67,9 +67,10 @@ bool MortevielleEngine::keyPressed() {
* @remarks Originally called 'get_ch'
*/
int MortevielleEngine::getChar() {
bool end = false;
// If there isn't any pending keypress, wait until there is
while (!shouldQuit() && _keypresses.empty()) {
keyPressed();
while (!shouldQuit() && !end) {
end = keyPressed();
}
// Return the top keypress