diff options
author | Strangerke | 2016-07-26 09:57:39 +0200 |
---|---|---|
committer | Bendegúz Nagy | 2016-08-26 23:02:22 +0200 |
commit | 698eb12770eae71b2e0f14df36573bf86cb6b62e (patch) | |
tree | ad9eb764a92c683e873708e782dd44d8af16e6e1 /engines/dm/champion.cpp | |
parent | 4de7ff5703f9cff9df242aaabf6ac1d88ce4a5c2 (diff) | |
download | scummvm-rg350-698eb12770eae71b2e0f14df36573bf86cb6b62e.tar.gz scummvm-rg350-698eb12770eae71b2e0f14df36573bf86cb6b62e.tar.bz2 scummvm-rg350-698eb12770eae71b2e0f14df36573bf86cb6b62e.zip |
DM: Rename a variable in f287_drawChampionBarGraphs
Diffstat (limited to 'engines/dm/champion.cpp')
-rw-r--r-- | engines/dm/champion.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/engines/dm/champion.cpp b/engines/dm/champion.cpp index 3c8d3a5798..5d1d664573 100644 --- a/engines/dm/champion.cpp +++ b/engines/dm/champion.cpp @@ -1982,40 +1982,40 @@ T0280048: void ChampionMan::f287_drawChampionBarGraphs(ChampionIndex champIndex) {
int16 barGraphHeights[3];
Champion *champ = &_vm->_championMan->_gK71_champions[champIndex];
- int16 AL0842_i_BarGraphIndex = 0;
+ int16 barGraphIdx = 0;
if (champ->_currHealth > 0) {
int32 barGraphHeight = (((int32)champ->_currHealth << 10) * 25) / champ->_maxHealth;
if (barGraphHeight & 0x000003FF) {
- barGraphHeights[AL0842_i_BarGraphIndex++] = (barGraphHeight >> 10) + 1;
+ barGraphHeights[barGraphIdx++] = (barGraphHeight >> 10) + 1;
} else {
- barGraphHeights[AL0842_i_BarGraphIndex++] = (barGraphHeight >> 10);
+ barGraphHeights[barGraphIdx++] = (barGraphHeight >> 10);
}
} else {
- barGraphHeights[AL0842_i_BarGraphIndex++] = 0;
+ barGraphHeights[barGraphIdx++] = 0;
}
if (champ->_currStamina > 0) {
int32 barGraphHeight = (((int32)champ->_currStamina << 10) * 25) / champ->_maxStamina;
if (barGraphHeight & 0x000003FF) {
- barGraphHeights[AL0842_i_BarGraphIndex++] = (barGraphHeight >> 10) + 1;
+ barGraphHeights[barGraphIdx++] = (barGraphHeight >> 10) + 1;
} else {
- barGraphHeights[AL0842_i_BarGraphIndex++] = (barGraphHeight >> 10);
+ barGraphHeights[barGraphIdx++] = (barGraphHeight >> 10);
}
} else {
- barGraphHeights[AL0842_i_BarGraphIndex++] = 0;
+ barGraphHeights[barGraphIdx++] = 0;
}
if (champ->_currMana > 0) {
if (champ->_currMana > champ->_maxMana) {
- barGraphHeights[AL0842_i_BarGraphIndex] = 25;
+ barGraphHeights[barGraphIdx] = 25;
} else {
int32 barGraphHeight = (((int32)champ->_currMana << 10) * 25) / champ->_maxMana;
if (barGraphHeight & 0x000003FF) {
- barGraphHeights[AL0842_i_BarGraphIndex] = (barGraphHeight >> 10) + 1;
+ barGraphHeights[barGraphIdx] = (barGraphHeight >> 10) + 1;
} else {
- barGraphHeights[AL0842_i_BarGraphIndex] = (barGraphHeight >> 10);
+ barGraphHeights[barGraphIdx] = (barGraphHeight >> 10);
}
}
} else {
- barGraphHeights[AL0842_i_BarGraphIndex] = 0;
+ barGraphHeights[barGraphIdx] = 0;
}
_vm->_eventMan->f78_showMouse();
|