diff options
-rw-r--r-- | engines/kyra/gui_lol.cpp | 2 | ||||
-rw-r--r-- | engines/kyra/lol.cpp | 24 | ||||
-rw-r--r-- | engines/kyra/screen_lol.cpp | 2 | ||||
-rw-r--r-- | engines/kyra/script_lol.cpp | 6 | ||||
-rw-r--r-- | engines/kyra/sound.h | 2 | ||||
-rw-r--r-- | engines/kyra/sound_lol.cpp | 2 | ||||
-rw-r--r-- | engines/kyra/staticres.cpp | 2 |
7 files changed, 20 insertions, 20 deletions
diff --git a/engines/kyra/gui_lol.cpp b/engines/kyra/gui_lol.cpp index 6817d85af9..912c3b2c37 100644 --- a/engines/kyra/gui_lol.cpp +++ b/engines/kyra/gui_lol.cpp @@ -706,7 +706,7 @@ void LoLEngine::gui_updateInput() { // set the "mainLoop" parameter to false for them. int inputFlag = checkInput(_activeButtons, !(_updateFlags & 3), 0); if (_preserveEvents) - _preserveEvents = false; + _preserveEvents = false; else removeInputTop(); diff --git a/engines/kyra/lol.cpp b/engines/kyra/lol.cpp index 73615b2848..b974f3f37a 100644 --- a/engines/kyra/lol.cpp +++ b/engines/kyra/lol.cpp @@ -2170,20 +2170,20 @@ void LoLEngine::processMagicIce(int charNum, int spellLevel) { uint16 v = (s[i * 3] + s[i * 3 + 1] + s[i * 3 + 2]) / 3; tpal[i * 3 + 1] = v; tpal[i * 3 + 2] = v << 1; - + if (tpal[i * 3 + 2] > 0x3f) tpal[i * 3 + 2] = 0x3f; } generateBrightnessPalette(tpal, tpal, _brightness, _lampEffect); generateBrightnessPalette(swampCol, swampCol, _brightness, _lampEffect); swampCol[0] = swampCol[1] = swampCol[2] = tpal[0] = tpal[1] = tpal[2] = 0; - + generateBrightnessPalette(_screen->_currentPalette, s, _brightness, _lampEffect); int sX = 112; int sY = 0; WSAMovie_v2 *mov = new WSAMovie_v2(this, _screen); - + if (spellLevel == 0) { sX = 0; } if (spellLevel == 1 || spellLevel == 2) { @@ -2235,7 +2235,7 @@ void LoLEngine::processMagicIce(int charNum, int spellLevel) { if (m->hitPoints <= dmg) { increaseExperience(charNum, 2, m->hitPoints); o = m->nextAssignedObject; - + if (m->flags & 0x20) { m->mode = 0; monsterDropItems(m); @@ -2291,7 +2291,7 @@ void LoLEngine::processMagicFireball(int charNum, int spellLevel) { int d = 1; if (spellLevel == 0) { - fbCnt = 4; + fbCnt = 4; } else if (spellLevel == 1) { fbCnt = 5; } else if (spellLevel == 2) { @@ -2373,7 +2373,7 @@ void LoLEngine::processMagicFireball(int charNum, int spellLevel) { if (fb->finalize) { _screen->drawShape(_screen->_curPage, shp, fX, fY, 0, 0x1004, _trueLightTable1, _trueLightTable2, sW, sH); - + if (finShpIndex2[fb->finProgress] != -1) { shp = _fireballShapes[finShpIndex2[fb->finProgress]]; fX = (((fb->progress * _fireBallCoords[fb->tblIndex & 0xff]) >> 16) + fb->destX) - ((fb->progress / 8 + shp[3] + fireBallWH) >> 1); @@ -2386,7 +2386,7 @@ void LoLEngine::processMagicFireball(int charNum, int spellLevel) { } else { _screen->drawShape(_screen->_curPage, shp, fX, fY, 0, 0x1004, _trueLightTable1, _trueLightTable2, sW, sH); } - + if (fb->finalize) { if (++fb->finProgress >= 6) { fb->active = false; @@ -2404,7 +2404,7 @@ void LoLEngine::processMagicFireball(int charNum, int spellLevel) { fb->finalize = true; } else { fb->active = false; - i++; + i++; } static const uint8 fireBallSfx[] = { 98, 167, 167, 168 }; @@ -2412,7 +2412,7 @@ void LoLEngine::processMagicFireball(int charNum, int spellLevel) { } else { fb->progress -= fb->step; - } + } } } @@ -2428,7 +2428,7 @@ void LoLEngine::processMagicFireball(int charNum, int spellLevel) { for (i = 0; i < numFireBalls; i++) delete[] fireballState[i]; - + _screen->setCurPage(cp); _screen->copyPage(12, 0); _screen->updateScreen(); @@ -2473,7 +2473,7 @@ void LoLEngine::processMagicLightning(int charNum, int spellLevel) { static const uint8 lightningDamage[] = { 18, 35, 50, 72 }; inflictMagicalDamageForBlock(calcNewBlockPosition(_currentBlock, _currentDirection), charNum, lightningDamage[spellLevel], 5); - + _sceneUpdateRequired = true; gui_drawScene(0); _screen->showMouse(); @@ -2860,7 +2860,7 @@ void LoLEngine::inflictMagicalDamage(int target, int attacker, int damage, int i void LoLEngine::inflictMagicalDamageForBlock(int block, int attacker, int damage, int index) { uint16 o = _levelBlockProperties[block].assignedObjects; - while (o & 0x8000) { + while (o & 0x8000) { inflictDamage(o, calcInflictableDamagePerItem(attacker, o, damage, index, 2), attacker, 2, index); if ((_monsters[o & 0x7fff].flags & 0x20) && (_currentLevel != 22)) break; diff --git a/engines/kyra/screen_lol.cpp b/engines/kyra/screen_lol.cpp index 2f7a938374..5ee7ae314e 100644 --- a/engines/kyra/screen_lol.cpp +++ b/engines/kyra/screen_lol.cpp @@ -817,7 +817,7 @@ bool Screen_LoL::fadeColor(int dstColorIndex, int srcColorIndex, uint32 elapsedT bool Screen_LoL::fadePaletteStep(uint8 *pal1, uint8 *pal2, uint32 elapsedTime, uint32 targetTime) { uint8 tpal[768]; - uint8 *p1 = _palettes[0]; + uint8 *p1 = _palettes[0]; bool res = false; for (int i = 0; i < 768; i++) { diff --git a/engines/kyra/script_lol.cpp b/engines/kyra/script_lol.cpp index 85ced707e6..188c7a23f1 100644 --- a/engines/kyra/script_lol.cpp +++ b/engines/kyra/script_lol.cpp @@ -201,9 +201,9 @@ int LoLEngine::olol_delay(EMCState *script) { int LoLEngine::olol_setGameFlag(EMCState *script) { debugC(3, kDebugLevelScriptFuncs, "LoLEngine::olol_setGameFlag(%p) (%d, %d)", (const void *)script, stackPos(0), stackPos(1)); - + assert((stackPos(0) >> 4) < 40); - + if (stackPos(1)) _gameFlags[stackPos(0) >> 4] |= (1 << (stackPos(0) & 0x0f)); else @@ -1873,7 +1873,7 @@ int LoLEngine::olol_placeInventoryItemInHand(EMCState *script) { int i = 0; for (; i < 48; i++) { if (!_inventory[i]) - continue; + continue; if (_itemsInPlay[_inventory[i]].itemPropertyIndex == itemType) break; } diff --git a/engines/kyra/sound.h b/engines/kyra/sound.h index eac0f748cd..edacdb0411 100644 --- a/engines/kyra/sound.h +++ b/engines/kyra/sound.h @@ -194,7 +194,7 @@ public: * @return playtime of the voice file (-1 marks unknown playtime) */ virtual int32 voicePlay(const char *file, Audio::SoundHandle *handle = 0, uint8 volume = 255, bool isSfx = false); - + Audio::AudioStream *getVoiceStream(const char *file); bool playVoiceStream(Audio::AudioStream *stream, Audio::SoundHandle *handle = 0, uint8 volume = 255, bool isSfx = false); diff --git a/engines/kyra/sound_lol.cpp b/engines/kyra/sound_lol.cpp index 1c6d427661..72624ef789 100644 --- a/engines/kyra/sound_lol.cpp +++ b/engines/kyra/sound_lol.cpp @@ -48,7 +48,7 @@ bool LoLEngine::snd_playCharacterSpeech(int id, int8 speaker, int) { _lastSpeechId = id; _lastSpeaker = speaker; _nextSpeechId = _nextSpeaker = -1; - + char pattern1[8]; char pattern2[5]; char file1[13]; diff --git a/engines/kyra/staticres.cpp b/engines/kyra/staticres.cpp index ced2dff0a4..02c432df2a 100644 --- a/engines/kyra/staticres.cpp +++ b/engines/kyra/staticres.cpp @@ -1902,7 +1902,7 @@ void LoLEngine::initStaticResource() { _lightningProps[i].frameDiv = tmp[(i << 2) + 1]; _lightningProps[i].sfxId = READ_LE_UINT16(&tmp[(i << 2) + 2]); } - _staticres->unloadId(lolLightningDefs); + _staticres->unloadId(lolLightningDefs); } _fireBallCoords = (const int16*) _staticres->loadRawDataBe16(lolFireballCoords, _fireBallCoordsSize); |