aboutsummaryrefslogtreecommitdiff
path: root/engines/dm/menus.cpp
diff options
context:
space:
mode:
authorStrangerke2016-09-11 11:10:22 +0200
committerStrangerke2016-09-11 11:10:22 +0200
commit2f311a800fe66ad183c49e917acd212cc9316e3b (patch)
treec5d1ca059c8b2c70aa4b7f5a22bbd8348a6b4423 /engines/dm/menus.cpp
parentb0bfa2e4f535cdaafb389950381fc3fff340e634 (diff)
downloadscummvm-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.cpp2
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;