author | ecalot
<ecalot> 2004-08-25 11:28:28 UTC |
committer | ecalot
<ecalot> 2004-08-25 11:28:28 UTC |
parent | 70019fd939dd72032fb0d4031706dd47cad56ecd |
FP/src/ker/room.c | +0 | -4 |
FP/src/res/maps.c | +1 | -4 |
diff --git a/FP/src/ker/room.c b/FP/src/ker/room.c index ebcc71d..4a94c2d 100644 --- a/FP/src/ker/room.c +++ b/FP/src/ker/room.c @@ -83,7 +83,6 @@ tTile roomGetTile(tRoom* room,int x, int y) { result.hasBigPillar=0; result.isGate=(result.code==T_GATE); result.gateInfo=room->level->screenGates[roomId-1][result.back]; - printf("gate@%d,%d. S%d, door=%d fr=%d time=%d action=%d\n",x,y,roomId,result.back,result.gateInfo->frame,result.gateInfo->time,result.gateInfo->action); result.walkable=1; result.hasChopper=0; result.isExit=(result.code==T_EXIT_LEFT)?1:((result.code==T_EXIT_RIGHT)?2:0); @@ -566,9 +565,6 @@ void drawForePanel(tRoom* room,int x, int y) { unsigned short seed; tTile left; tTile right; - /*int l; - for (l=0;l<53;l++) printf("%d-",w2_sep(seedArray[l])); - printf("\n");*/ left=roomGetTile(room,x-1,y); right=roomGetTile(room,x+1,y); /* there are 4 cases */ diff --git a/FP/src/res/maps.c b/FP/src/res/maps.c index 655b54f..20fcbc7 100644 --- a/FP/src/res/maps.c +++ b/FP/src/res/maps.c @@ -60,7 +60,6 @@ void* mapLoadLevel(tMemory level) { gates++; } } - fprintf(stderr,"Screen %d has %d gates.\n",i,gateInRoom); if (gateInRoom) { map->screenGates[i]=malloc(gateInRoom*sizeof(tGate*)); } else { @@ -79,7 +78,6 @@ void* mapLoadLevel(tMemory level) { newGate.frame=map->back[i*30+j]; newGate.action=map->back[i*30+j]?eClose:eOpen; map->back[i*30+j]=gateInRoom; - fprintf(stderr,"mapLoadLevel: Asignando gate pointer: screen %d, gate number %d\n",i,gateInRoom); map->screenGates[i][gateInRoom]=map->gates+gates; auxGates[i*30+j]=map->gates+gates; fprintf(stderr,"mapLoadLevel: Loading gate: indexed=%d gate pointer=%p\n",i,(void*)auxGates[i*30+j]); @@ -99,7 +97,6 @@ void* mapLoadLevel(tMemory level) { T=!((byte1>>7)&1); map->events[i].triggerNext=T; map->events[i].gate=auxGates[(S-1)*30+L]; /* in case of error null is assigned */ - fprintf(stderr,"mapLoadLevel: Loading event: S=%d L=%d T=%d gate number=%d gate pointer=%p\n",S,L,T,(S-1)*30+L,(void*)auxGates[(S-1)*30+L]); } free(auxGates); return (void*)map; @@ -310,7 +307,7 @@ void mapPressedTile(tMap* map, tTile tile, int s, int x, int y) { fprintf(stderr,"mapPressedTile: throw event %d\n",tile.back); do { map->events[tile.back].gate->action=tile.isRaise?eOpening:eClosingFast; - } while (0&&map->events[tile.back++].triggerNext); + } while (map->events[tile.back++].triggerNext); } }