diff options
author | Bendegúz Nagy | 2016-07-13 15:01:00 +0200 |
---|---|---|
committer | Bendegúz Nagy | 2016-08-26 23:02:22 +0200 |
commit | b4bebaa845ecd729576e143818fcc7b378262b5b (patch) | |
tree | a5908b04e38b6cd892b70ab9d45d559c36d83d92 /engines/dm/champion.cpp | |
parent | 1e8dfd7bb6b86ce5d4d2827bf692b217afbb07b1 (diff) | |
download | scummvm-rg350-b4bebaa845ecd729576e143818fcc7b378262b5b.tar.gz scummvm-rg350-b4bebaa845ecd729576e143818fcc7b378262b5b.tar.bz2 scummvm-rg350-b4bebaa845ecd729576e143818fcc7b378262b5b.zip |
DM: Add f371_commandProcessType111To115_ClickInActionArea and it's dependencies
Diffstat (limited to 'engines/dm/champion.cpp')
-rw-r--r-- | engines/dm/champion.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/dm/champion.cpp b/engines/dm/champion.cpp index 906c95bf47..b9c286ac92 100644 --- a/engines/dm/champion.cpp +++ b/engines/dm/champion.cpp @@ -1059,7 +1059,7 @@ bool ChampionMan::f308_isLucky(Champion* champ, uint16 percentage) { if (_vm->getRandomNumber(2) && (_vm->getRandomNumber(100) > percentage)) {
return true;
}
- register unsigned char* L0928_puc_Statistic = champ->_statistics[k0_ChampionStatLuck];
+ unsigned char* L0928_puc_Statistic = champ->_statistics[k0_ChampionStatLuck];
AP0646_ui_IsLucky = (_vm->getRandomNumber(L0928_puc_Statistic[k1_ChampionStatCurrent]) > percentage);
L0928_puc_Statistic[k1_ChampionStatCurrent] = f26_getBoundedValue((int32)L0928_puc_Statistic[k2_ChampionStatMinimum], (int32)L0928_puc_Statistic[k1_ChampionStatCurrent] + (AP0646_ui_IsLucky ? -2 : 2), (int32)L0928_puc_Statistic[k0_ChampionStatMaximum]);
return AP0646_ui_IsLucky;
|