git » fp-git.git » commit fb52c50

restaured torches

author ecalot
2004-08-27 19:44:59 UTC
committer ecalot
2004-08-27 19:44:59 UTC
parent 273c7e34a1375ee08b60c510789d37770efb0e61

restaured torches

FP/src/ker/room.c +2 -3

diff --git a/FP/src/ker/room.c b/FP/src/ker/room.c
index 42095f9..66ae876 100644
--- a/FP/src/ker/room.c
+++ b/FP/src/ker/room.c
@@ -392,9 +392,8 @@ void drawBackPanel(tRoom* room,int x, int y) {
 	/* torch/this */
 	if (tile.hasTorch) { /* animation */
 		outputDrawBitmap(
-			roomGfx.potionAnim->pFrames[
-				/*(((tMap*)(room->level))->time+2*x+y)%(roomGfx.torch->frames)*/
-				(((tMap*)(room->level))->time+2*x+y)%(roomGfx.potionAnim->frames)
+			roomGfx.torch->pFrames[
+				((room->level->time)+2*x+y)%(roomGfx.torch->frames)
 			],
 			x*TILE_W+11,
 			y*TILE_H-39