Skip to content

Commit

Permalink
DM: Fix broken champion action hand slots
Browse files Browse the repository at this point in the history
  • Loading branch information
Bendegúz Nagy committed Aug 26, 2016
1 parent c8ab784 commit dfc2d7e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions engines/dm/TODOs/todo.txt
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion engines/dm/eventman.cpp
Expand Up @@ -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
}
Expand Down

0 comments on commit dfc2d7e

Please sign in to comment.