From 9f9ac99b3198c09e58767ab2fe3eb71d03a5647e Mon Sep 17 00:00:00 2001 From: Bendegúz Nagy Date: Thu, 14 Jul 2016 16:32:00 +0200 Subject: DM: Fix broken damage display --- engines/dm/TODOs/todo.txt | 2 +- engines/dm/gfx.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'engines/dm') diff --git a/engines/dm/TODOs/todo.txt b/engines/dm/TODOs/todo.txt index 70c000870e..47416c58df 100644 --- a/engines/dm/TODOs/todo.txt +++ b/engines/dm/TODOs/todo.txt @@ -8,7 +8,7 @@ Bugs: When object are put on the right side of the current square, they disappear Drawing door ornaments segfaults when going back to the start Stepping onto the plate next doesn't open the grated gate on the 0th level - Walking into walls corrupts memory + Damage to a champion's health is not getting reflected in the bar graphs, only when opening the inventory (maybe health is not getting set correctly) Possible bugs: diff --git a/engines/dm/gfx.cpp b/engines/dm/gfx.cpp index f05a8ca7bb..5efb3f05ac 100644 --- a/engines/dm/gfx.cpp +++ b/engines/dm/gfx.cpp @@ -1445,7 +1445,7 @@ void DisplayMan::f21_blitToScreen(byte *bitmap, int16* box, int16 byteWidth, Col void DisplayMan::f21_blitToScreen(byte* bitmap, Box* box, int16 byteWidth, Color transparent, int16 height) { _g578_useByteBoxCoordinates = false; - f132_blitToBitmap(bitmap, _g348_bitmapScreen, *box, 0, 0, byteWidth, k112_byteWidthViewport, transparent, height, k136_heightViewport); + f132_blitToBitmap(bitmap, _g348_bitmapScreen, *box, 0, 0, byteWidth, k160_byteWidthScreen, transparent, height, k200_heightScreen); } void DisplayMan::f101_drawWallSetBitmapWithoutTransparency(byte *bitmap, Frame &f) { -- cgit v1.2.3