From 36278dccded41106e242b28810b13a5d702cc72a Mon Sep 17 00:00:00 2001 From: Willem Jan Palenstijn Date: Mon, 14 Nov 2011 20:18:06 +0100 Subject: DREAMWEB: Move 'mainscreen' from dreamgen --- engines/dreamweb/stubs.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'engines/dreamweb/stubs.cpp') diff --git a/engines/dreamweb/stubs.cpp b/engines/dreamweb/stubs.cpp index 5fa6e8af6d..fed7a39863 100644 --- a/engines/dreamweb/stubs.cpp +++ b/engines/dreamweb/stubs.cpp @@ -1918,5 +1918,22 @@ void DreamGenContext::showcity() { showframe(tempGraphics, 120+57, 32, 1, 0); } +void DreamGenContext::mainscreen() { + STACK_CHECK; + data.byte(kInmaparea) = 0; + bx = offset_mainlist; + _cmp(data.byte(kWatchon), 1); + if (flags.z()) + goto checkmain; + bx = offset_mainlist2; +checkmain: + checkcoords(); + _cmp(data.byte(kWalkandexam), 0); + if (flags.z()) + return /* (finishmain) */; + walkandexamine(); +} + + } /*namespace dreamgen */ -- cgit v1.2.3