diff options
Diffstat (limited to 'engines/dreamweb/monitor.cpp')
-rw-r--r-- | engines/dreamweb/monitor.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/engines/dreamweb/monitor.cpp b/engines/dreamweb/monitor.cpp index f8ad1270d5..a5eb06773d 100644 --- a/engines/dreamweb/monitor.cpp +++ b/engines/dreamweb/monitor.cpp @@ -215,5 +215,22 @@ void DreamGenContext::accesslightoff() { multidump(74, 182, 12, 8); } +void DreamGenContext::randomaccess() { + randomaccess(cx); +} + +void DreamGenContext::randomaccess(uint16 count) { + for (uint16 i = 0; i < count; ++i) { + vsync(); + vsync(); + uint16 v = engine->randomNumber() & 15; + if (v < 10) + accesslightoff(); + else + accesslighton(); + } + accesslightoff(); +} + } /*namespace dreamgen */ |