aboutsummaryrefslogtreecommitdiff
path: root/engines/made/scriptfuncs.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/made/scriptfuncs.cpp')
-rw-r--r--engines/made/scriptfuncs.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/engines/made/scriptfuncs.cpp b/engines/made/scriptfuncs.cpp
index 4519803101..852320a4ad 100644
--- a/engines/made/scriptfuncs.cpp
+++ b/engines/made/scriptfuncs.cpp
@@ -220,7 +220,8 @@ int16 ScriptFunctionsRtz::o1_EVENT(int16 argc, int16 *argv) {
break;
case Common::EVENT_KEYDOWN:
- switch (event.kbd.ascii) {
+ _vm->_eventKey = event.kbd.ascii;
+ switch (_vm->_eventKey) {
case '1':
eventNum = 1;
break;
@@ -267,7 +268,7 @@ int16 ScriptFunctionsRtz::o1_EVENTY(int16 argc, int16 *argv) {
}
int16 ScriptFunctionsRtz::o1_EVENTKEY(int16 argc, int16 *argv) {
- return 0;
+ return _vm->_eventKey;
}
int16 ScriptFunctionsRtz::o1_VISUALFX(int16 argc, int16 *argv) {
@@ -368,7 +369,7 @@ int16 ScriptFunctionsRtz::o1_GETTIMER(int16 argc, int16 *argv) {
}
int16 ScriptFunctionsRtz::o1_SETTIMER(int16 argc, int16 *argv) {
- g_system->delayMillis(5000);
+ //g_system->delayMillis(5000);
return 0;
}
@@ -397,7 +398,7 @@ int16 ScriptFunctionsRtz::o1_FONT(int16 argc, int16 *argv) {
}
int16 ScriptFunctionsRtz::o1_DRAWTEXT(int16 argc, int16 *argv) {
- g_system->delayMillis(5000);
+ //g_system->delayMillis(5000);
return 0;
}