author | ecalot
<ecalot> 2005-01-27 16:36:00 UTC |
committer | ecalot
<ecalot> 2005-01-27 16:36:00 UTC |
parent | 97f9be4496fc2ba1504524d5482ec1780cf4972f |
FP/src/ker/kernel.c | +4 | -3 |
diff --git a/FP/src/ker/kernel.c b/FP/src/ker/kernel.c index db97c0b..49bda01 100644 --- a/FP/src/ker/kernel.c +++ b/FP/src/ker/kernel.c @@ -58,8 +58,9 @@ int playgame(int optionflag,int level) { tRoomId roomId; /*TODO: use a map.c function that reads this information and creates the kid*/ - kid=objectCreate(30,1,DIR_RIGHT,stateKidInLevel(/*level*/1),RES_IMG_ALL_KID,1,oKid); - + kid=objectCreate(30,1,DIR_RIGHT,stateKidInLevel(level),RES_IMG_ALL_KID,1,oKid); + outputDrawMessage(24,"LEVEL %d\n",level); + /* Game loop here */ /* Initialize kid and room in the map */ @@ -119,7 +120,7 @@ int playgame(int optionflag,int level) { map=(tMap*)resMap->pFrames; mapStart(map,&kid,&roomId,level); room=mapGetRoom(map,roomId); - printf("Kernel/playgame: cheat: Pass to level %d\n",level); + outputDrawMessage(24,"Cheat: Pass to level %d\n",level); break; case showVersion: outputDrawMessage(24,"FreePrince v"FP_VERSION"\n");