git » fp-git.git » commit eec37f9

Debris foreground layer.

author ecalot
2004-08-20 08:39:14 UTC
committer ecalot
2004-08-20 08:39:14 UTC
parent ee79e5a7b602ccb7f9e4b87e1f30296fb79f9e1e

Debris foreground layer.

FP/src/ker/room.c +10 -0

diff --git a/FP/src/ker/room.c b/FP/src/ker/room.c
index fcef8e2..4493eaf 100644
--- a/FP/src/ker/room.c
+++ b/FP/src/ker/room.c
@@ -216,7 +216,17 @@ void roomDrawForeground(tRoom* room) {
 					y*TILE_H-2
 				);
 			}
+			/* debris/this foreground layer */
+			if (tile.hasBrokenTile) {
+				outputDrawBitmap(
+					roomGfx.environment->pFrames[51],
+					(x-1)*TILE_W,
+					y*TILE_H-2
+				);
+			}
 		}
+		
+		
 		/* bottom tile-floor block TODO: separate in two functions */
 	}
 }