aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBendegúz Nagy2016-07-26 13:13:38 +0200
committerBendegúz Nagy2016-08-26 23:02:22 +0200
commitdfc2d7e769ef16db0a86b889e02b0fb6d37ccaf6 (patch)
treeefcbb51afadc50e371eb057ff709444934bedcd6
parentc8ab7843303710b8784a3a6525978fcbd1ea98f0 (diff)
downloadscummvm-rg350-dfc2d7e769ef16db0a86b889e02b0fb6d37ccaf6.tar.gz
scummvm-rg350-dfc2d7e769ef16db0a86b889e02b0fb6d37ccaf6.tar.bz2
scummvm-rg350-dfc2d7e769ef16db0a86b889e02b0fb6d37ccaf6.zip
DM: Fix broken champion action hand slots
-rw-r--r--engines/dm/TODOs/todo.txt4
-rw-r--r--engines/dm/eventman.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/engines/dm/TODOs/todo.txt b/engines/dm/TODOs/todo.txt
index e5cca0af12..b2bac2aa71 100644
--- a/engines/dm/TODOs/todo.txt
+++ b/engines/dm/TODOs/todo.txt
@@ -3,12 +3,12 @@ Bugs:
Broken colour palette
Portraits, alcoves etc. look broken from afar
Arrow and hand display is messed up
+ Items are displayed in the wrong cells
+ Levers look the same after pulling them
Logic:
When object are put on the right side of the current square, they disappear
Drawing door ornaments segfaults when going back to the start
- Placing one of the play icons from the top right corner into one of the champions' hands will crash the engine
- Sometimes putting stuff in the player's hand segfaults
Object display is a bit mixed up with regards to which cell is it drawn in
Method cthulu messes up the callstack
diff --git a/engines/dm/eventman.cpp b/engines/dm/eventman.cpp
index 7ccf647e7d..ec25758b24 100644
--- a/engines/dm/eventman.cpp
+++ b/engines/dm/eventman.cpp
@@ -1149,7 +1149,7 @@ void EventManager::f282_commandProcessCommands160To162ClickInResurrectReincarnat
champ->resetSkillsToZero();
for (uint16 i = 0; i < 12; i++) {
- uint16 statIndex = _vm->_rnd->getRandomNumber(7);
+ uint16 statIndex = _vm->getRandomNumber(7);
champ->getStatistic((ChampionStatisticType)statIndex, k1_ChampionStatCurrent)++; // returns reference
champ->getStatistic((ChampionStatisticType)statIndex, k0_ChampionStatMaximum)++; // returns reference
}