diff options
author | Strangerke | 2016-09-11 11:10:22 +0200 |
---|---|---|
committer | Strangerke | 2016-09-11 11:10:22 +0200 |
commit | 2f311a800fe66ad183c49e917acd212cc9316e3b (patch) | |
tree | c5d1ca059c8b2c70aa4b7f5a22bbd8348a6b4423 /engines/dm/menus.cpp | |
parent | b0bfa2e4f535cdaafb389950381fc3fff340e634 (diff) | |
download | scummvm-rg350-2f311a800fe66ad183c49e917acd212cc9316e3b.tar.gz scummvm-rg350-2f311a800fe66ad183c49e917acd212cc9316e3b.tar.bz2 scummvm-rg350-2f311a800fe66ad183c49e917acd212cc9316e3b.zip |
DM: Get rid of getBoundedValue, replace it by CLIP
Diffstat (limited to 'engines/dm/menus.cpp')
-rw-r--r-- | engines/dm/menus.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/dm/menus.cpp b/engines/dm/menus.cpp index 34cbd7e14b..5edbeb3db7 100644 --- a/engines/dm/menus.cpp +++ b/engines/dm/menus.cpp @@ -575,7 +575,7 @@ int16 MenuMan::getChampionSpellCastResult(uint16 champIndex) { if (curSpell->getType() == kDMSpellTypeProjectileOpenDoor) skillLevel <<= 1; - _vm->_championMan->isProjectileSpellCast(champIndex, Thing(curSpell->getType() + Thing::_firstExplosion.toUint16()), getBoundedValue(21, (powerSymbolOrdinal + 2) * (4 + (skillLevel << 1)), 255), 0); + _vm->_championMan->isProjectileSpellCast(champIndex, Thing(curSpell->getType() + Thing::_firstExplosion.toUint16()), CLIP(21, (powerSymbolOrdinal + 2) * (4 + (skillLevel << 1)), 255), 0); break; case kDMSpellKindOther: { TimelineEvent newEvent; |