diff options
author | Johannes Schickel | 2009-07-09 15:32:06 +0000 |
---|---|---|
committer | Johannes Schickel | 2009-07-09 15:32:06 +0000 |
commit | a7c96e15268d15a0a13f0cf5321a7c51587aa3f9 (patch) | |
tree | 302a2f29255ce65f1cd1b431bf1f8ffd8caab04b | |
parent | b1bd18040808a7632c6d74eed2ccb97d569af1f4 (diff) | |
download | scummvm-rg350-a7c96e15268d15a0a13f0cf5321a7c51587aa3f9.tar.gz scummvm-rg350-a7c96e15268d15a0a13f0cf5321a7c51587aa3f9.tar.bz2 scummvm-rg350-a7c96e15268d15a0a13f0cf5321a7c51587aa3f9.zip |
Cleanup.
svn-id: r42292
-rw-r--r-- | engines/kyra/lol.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/kyra/lol.cpp b/engines/kyra/lol.cpp index f2617dc8b4..4be0e413e1 100644 --- a/engines/kyra/lol.cpp +++ b/engines/kyra/lol.cpp @@ -1901,7 +1901,7 @@ int LoLEngine::castSpell(int charNum, int spellType, int spellLevel) { _activeSpell.spell = spellType; _activeSpell.p = &_spellProperties[spellType]; - _activeSpell.level = spellLevel < 0 ? -spellLevel : spellLevel; + _activeSpell.level = ABS(spellLevel); if ((_spellProperties[spellType].flags & 0x100) && testWallFlag(calcNewBlockPosition(_currentBlock, _currentDirection), _currentDirection, 1)) { _txt->printMessage(2, getLangString(0x4257)); |