Remove a busy loop when showing an error message.
This commit is contained in:
parent
1f7db8a9d8
commit
c14a9e7956
|
@ -93,7 +93,7 @@ void showErrorAndExit(int errorId, const char *name)
|
||||||
while (!engine.keyState[SDLK_SPACE])
|
while (!engine.keyState[SDLK_SPACE])
|
||||||
{
|
{
|
||||||
getPlayerInput();
|
getPlayerInput();
|
||||||
graphics.updateScreen();
|
graphics.delayFrame();
|
||||||
}
|
}
|
||||||
|
|
||||||
exit(1);
|
exit(1);
|
||||||
|
|
Loading…
Reference in New Issue