NEVERHOOD: Allow skipping of the introductory credits with the space key

This commit is contained in:
Filippos Karapetis 2013-12-20 01:58:41 +02:00
parent 7ea0386307
commit 1dde17b0ee

View File

@ -102,11 +102,11 @@ void Scene1501::update() {
Scene::update();
if (_countdown1 != 0) {
_countdown1--;
if (_countdown1 == 0) {
if (_countdown1 == 0 || _skip) {
_vm->_screen->clear();
leaveScene(0);
}
} else if ((_countdown2 != 0 && (--_countdown2 == 0)) || (_countdown2 == 0 && !isSoundPlaying(0))) {
} else if ((_countdown2 != 0 && (--_countdown2 == 0)) || (_countdown2 == 0 && !isSoundPlaying(0)) || _skip) {
_countdown1 = 12;
_palette->startFadeToBlack(11);
}