git » fp-git.git » commit 5f84d5b

added more parts of loose tile as tDanger

author ecalot
2005-01-31 00:24:47 UTC
committer ecalot
2005-01-31 00:24:47 UTC
parent bbc0764914daaf1e071d063b0f6198e64a82be98

added more parts of loose tile as tDanger

FP/src/ker/room.c +1 -0
FP/src/res/maps.c +4 -0

diff --git a/FP/src/ker/room.c b/FP/src/ker/room.c
index 1052903..af9b16f 100644
--- a/FP/src/ker/room.c
+++ b/FP/src/ker/room.c
@@ -125,6 +125,7 @@ tTile roomGetTile(tRoom* room,int x, int y) {
 #define chopperGetFrame(a) (((tDanger*)a.moreInfo)->frame)
 #define gateGetFrame(a)    (((tGate*)a.moreInfo)->frame)
 #define spikeGetFrame(a)   (((tDanger*)a.moreInfo)->frame)
+#define looseGetFrame(a)   (((tDanger*)a.moreInfo)->frame)
 #define wallGetInfo(a)     (wallGet(env,cases,(a),seed))
 
 /* door drawing */
diff --git a/FP/src/res/maps.c b/FP/src/res/maps.c
index c3af729..fdfc3b4 100644
--- a/FP/src/res/maps.c
+++ b/FP/src/res/maps.c
@@ -441,6 +441,10 @@ void  mapMove(tMap* map) {
 			}
 			if (!map->dangers[i].more.time) map->dangers[i].frame++;
 			break;
+		case eLosMoving:
+			if (map->dangers[i].frame) map->dangers[i].frame++;
+			if (map->dangers[i].frame==7) map->dangers[i].action=eLosDown;
+			break;
 		default:
 			break;
 		}