aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorStrangerke2016-08-21 22:09:58 +0200
committerBendegúz Nagy2016-08-26 23:02:22 +0200
commit07438a94e1549ddfd291ba918b23e53bcc24878d (patch)
tree89f3700f9025a595c57180ba88aa697885fcfdf1 /engines
parent53121afb092587f87faf0281b08e96ff1c59e44e (diff)
downloadscummvm-rg350-07438a94e1549ddfd291ba918b23e53bcc24878d.tar.gz
scummvm-rg350-07438a94e1549ddfd291ba918b23e53bcc24878d.tar.bz2
scummvm-rg350-07438a94e1549ddfd291ba918b23e53bcc24878d.zip
DM: Implement missing code in f125_drawSquareD0L
Diffstat (limited to 'engines')
-rw-r--r--engines/dm/gfx.cpp13
1 files changed, 10 insertions, 3 deletions
diff --git a/engines/dm/gfx.cpp b/engines/dm/gfx.cpp
index 5f568a8931..c60db12e25 100644
--- a/engines/dm/gfx.cpp
+++ b/engines/dm/gfx.cpp
@@ -1951,13 +1951,20 @@ void DisplayMan::f125_drawSquareD0L(Direction dir, int16 posX, int16 posY) {
uint16 squareAspect[5];
_vm->_dungeonMan->f172_setSquareAspect(squareAspect, dir, posX, posY);
switch (squareAspect[k0_ElementAspect]) {
+ case k0_WallElemType:
+ f100_drawWallSetBitmap(_g701_bitmapWallSet_Wall_D0L, _frameWalls163[k10_ViewSquare_D0L]);
+ break;
+ case k1_CorridorElemType:
+ case k5_TeleporterElemType:
+ case k16_DoorSideElemType:
+ f115_cthulhu(Thing(squareAspect[k1_FirstGroupOrObjectAspect]), dir, posX, posY, k10_ViewSquare_D0L, k0x0002_CellOrder_BackRight);
+ break;
+ case k2_PitElemType:
+ f104_drawFloorPitOrStairsBitmap(squareAspect[k2_PitInvisibleAspect] ? k61_floorPitInvisibleD0L_GraphicIndice : k55_FloorPit_D0L_GraphicIndice, frameFloorPitD0L);
case k18_StairsSideElemType:
if (squareAspect[k2_StairsUpAspect])
f104_drawFloorPitOrStairsBitmap(_g692_stairsNativeBitmapIndex_Side_D0L, frameStairsSideD0L);
break;
- case k0_WallElemType:
- f100_drawWallSetBitmap(_g701_bitmapWallSet_Wall_D0L, _frameWalls163[k10_ViewSquare_D0L]);
- break;
default:
break;
}