# HG changeset patch # User Atuto SHIROMA # Date 1307551525 -32400 # Node ID 8a525ec378fcc727cfccc244e4691fbf415eb17e # Parent 165b4d902ca41b2fb86ccb5d19f78547483ce176 bool.h change stdbool.h diff -r 165b4d902ca4 -r 8a525ec378fc Magoroku.cc --- a/Magoroku.cc Thu Jun 09 00:53:50 2011 +0900 +++ b/Magoroku.cc Thu Jun 09 01:45:25 2011 +0900 @@ -14,9 +14,9 @@ #include "profile.h" #include "syokika.h" #include "sankaku.h" -#include "sgoex.h" +//#include "sgoex.h" #include "sound.h" -#include "bool.h" +#include #include "bom.h" #include "count2.h" #include "tokuten.h" @@ -278,7 +278,7 @@ //charpatern(); //bosguage(); - if (jiki.bf == TRUE) { + if (jiki.bf == true) { Player(0); count++; PutSprite(count, jiki.x, jiki.y, jiki.ch); @@ -332,13 +332,13 @@ filpcount = 0; stage = 0; //for (i = 0; i < 300; i++) - //enemy[i].f = FALSE; + //enemy[i].f = false; jiki.zanki = 3; jiki.x = 60; jiki.y = 200; jiki.ch = 3; jiki.point = 0; - jiki.bf = FALSE; + jiki.bf = false; jiki.muteki = 120; enemycount = 0; lg.stg = 4096; @@ -389,7 +389,7 @@ //PutSpriteEx(count, 8192, 8192, 0); if (pad[0].st > 1) { - jiki.bf = TRUE; + jiki.bf = true; //CdPlay(1,&cdp[0],0); SoundStop(); @@ -408,7 +408,7 @@ game_pause(int gamef) { gamef = 3; - if (jiki.zanki != 0 && jiki.bf != FALSE) { + if (jiki.zanki != 0 && jiki.bf != false) { if (pad[0].se == 1) { //Mix_Pause(BGM); PauseSdlMixer(BGM); @@ -480,7 +480,7 @@ PutSprite(1, 480, 480, 19); return gamef; } - if (jiki.bf == FALSE) { + if (jiki.bf == false) { f: if (rswait < 80) { rswait++; @@ -489,7 +489,7 @@ rswait = 0; jiki.x = 60; jiki.y = 200; - jiki.bf = TRUE; + jiki.bf = true; pad[0].st = 0; lg.stg = 4096; diff -r 165b4d902ca4 -r 8a525ec378fc car.h --- a/car.h Thu Jun 09 00:53:50 2011 +0900 +++ b/car.h Thu Jun 09 01:45:25 2011 +0900 @@ -4,7 +4,7 @@ #define CAR_H #include "libps2.h" -#include "game.h" +//#include "game.h" typedef struct car { FVECTOR direction; // 向き @@ -34,7 +34,7 @@ int rap; } Game, *GamePtr; - +//extern Game *game; CarPtr car_init(int id); @@ -42,9 +42,10 @@ void car_swerve(CarPtr, int); // ここで宣言したらgame.hと相互にincludeしちゃうからschedule.hのほうに書いてしまいました -void car_update( Game *game, CarPtr car ); +extern void car_update( Game*, CarPtr ); - +//自作関数 +void car_id_update(Game*, CarPtr ); #endif diff -r 165b4d902ca4 -r 8a525ec378fc game.h --- a/game.h Thu Jun 09 00:53:50 2011 +0900 +++ b/game.h Thu Jun 09 01:45:25 2011 +0900 @@ -15,7 +15,7 @@ extern Game *game; -void schedule(Game *game); +extern void schedule(Game *game); #endif diff -r 165b4d902ca4 -r 8a525ec378fc ps2util.cc --- a/ps2util.cc Thu Jun 09 00:53:50 2011 +0900 +++ b/ps2util.cc Thu Jun 09 01:45:25 2011 +0900 @@ -328,7 +328,7 @@ // miya void ps2util_tex_Exclude( TEXTURE* t ) { - const char *test = "test"; + //const char *test = "test"; } void ps2util_sprite_Draw() diff -r 165b4d902ca4 -r 8a525ec378fc schedule.cc --- a/schedule.cc Thu Jun 09 00:53:50 2011 +0900 +++ b/schedule.cc Thu Jun 09 01:45:25 2011 +0900 @@ -14,6 +14,7 @@ #include "controler.h" #include "camera.h" #include "carNode.h" +#include "car.h" #include "light.h" #include "title_scene.h" #include "game_time.h" @@ -72,7 +73,7 @@ static void (*sche_func)(Game*) = &sche_game_init; static int change_state = 0; -// schedule.cで使用してる +// schedule.ccで使用してる void linda_env_init( void ); static void