aboutsummaryrefslogtreecommitdiff
path: root/engines/access/scripts.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/access/scripts.cpp')
-rw-r--r--engines/access/scripts.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/engines/access/scripts.cpp b/engines/access/scripts.cpp
index 9268b829e7..3f94ea2e55 100644
--- a/engines/access/scripts.cpp
+++ b/engines/access/scripts.cpp
@@ -775,14 +775,13 @@ void Scripts::cmdPlayerOn() {
_vm->_player->_playerOff = false;
}
-void Scripts::cmdDead() {
- int deathId = _data->readByte();
+void Scripts::cmdDead(int deathId) {
_vm->_events->hideCursor();
_vm->_screen->forceFadeOut();
cmdFreeSound();
_vm->_sound->_soundTable.push_back(SoundEntry(_vm->_files->loadFile(98, 44), 1));
-
+
_vm->_screen->clearScreen();
_vm->_screen->setPanel(3);
@@ -843,6 +842,11 @@ void Scripts::cmdDead() {
}
}
+void Scripts::cmdDead() {
+ int deathId = _data->readByte();
+ cmdDead(deathId);
+}
+
void Scripts::cmdFadeOut() {
_vm->_screen->forceFadeOut();
}