diff options
author | Florian Kagerer | 2009-04-04 21:10:35 +0000 |
---|---|---|
committer | Florian Kagerer | 2009-04-04 21:10:35 +0000 |
commit | 44fa38b2afa2279a19a09a973dc157606b865008 (patch) | |
tree | d19ec427d9d67a96358618afb62edf773ff63f52 /engines/kyra/script_lol.cpp | |
parent | af0efd8938f896305e18a10f4cdd260f426f2b24 (diff) | |
download | scummvm-rg350-44fa38b2afa2279a19a09a973dc157606b865008.tar.gz scummvm-rg350-44fa38b2afa2279a19a09a973dc157606b865008.tar.bz2 scummvm-rg350-44fa38b2afa2279a19a09a973dc157606b865008.zip |
LOL: implemented compass
svn-id: r39852
Diffstat (limited to 'engines/kyra/script_lol.cpp')
-rw-r--r-- | engines/kyra/script_lol.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/engines/kyra/script_lol.cpp b/engines/kyra/script_lol.cpp index 94ccef3909..6ba210bcf5 100644 --- a/engines/kyra/script_lol.cpp +++ b/engines/kyra/script_lol.cpp @@ -575,7 +575,7 @@ int LoLEngine::olol_getGlobalVar(EMCState *script) { case 10: return _sceneDefaultUpdate; case 11: - return _unkBt1; + return _compassBroken; case 12: return _unkBt2; case 13: @@ -647,7 +647,7 @@ int LoLEngine::olol_setGlobalVar(EMCState *script) { break; case 11: - _unkBt1 = a & 0xff; + _compassBroken = a & 0xff; break; case 12: @@ -711,7 +711,7 @@ int LoLEngine::olol_initMonster(EMCState *script) { if (l->might || l->mode == 13) continue; - memset(l, 0, sizeof(MonsterInPlay)); + memset(l, 0, sizeof(MonsterInPlay)); l->id = i; l->x = x; l->y = y; @@ -777,7 +777,7 @@ int LoLEngine::olol_loadNewLevel(EMCState *script) { _screen->fadeClearSceneWindow(10); _screen->fillRect(112, 0, 288, 120, 0); disableSysTimer(2); - + for (int i = 0; i < 8; i++) { if (!_flyingObjects[i].enable || _flyingObjects[i].a) continue; @@ -943,7 +943,7 @@ int LoLEngine::olol_characterJoinsParty(EMCState *script) { _characters[i].flags &= 0xfffe; calcCharPortraitXpos(); - + if (!_updateFlags) { gui_enableDefaultPlayfieldButtons(); gui_drawPlayField(); @@ -1100,7 +1100,7 @@ int LoLEngine::olol_update(EMCState *script) { int LoLEngine::olol_drawExitButton(EMCState *script) { debugC(3, kDebugLevelScriptFuncs, "LoLEngine::olol_drawExitButton(%p) (%d, %d)", (const void *)script, stackPos(0), stackPos(1)); - + static const uint8 printPara[] = { 0x90, 0x78, 0x0C, 0x9F, 0x80, 0x1E }; int cp = _screen->setCurPage(0); @@ -1111,7 +1111,7 @@ int LoLEngine::olol_drawExitButton(EMCState *script) { char *str = getLangString(0x4033); int w = _screen->getTextWidth(str); - + gui_drawBox(x - offs - w, y - 9, w + offs, 9, 136, 251, 252); _screen->printText(str, x - (offs >> 1) - w, y - 7, 144, 0); @@ -1119,7 +1119,7 @@ int LoLEngine::olol_drawExitButton(EMCState *script) { _screen->drawGridBox(x - offs - w + 1, y - 8, w + offs - 2, 7, 1); _screen->setFont(cf); - _screen->setCurPage(cp); + _screen->setCurPage(cp); return 1; } |