# HG changeset patch # User koba # Date 1293374456 -32400 # Node ID a0ab0c6925bd27c724d46f34d9fac1a349a9cb7c # Parent 0440f2f19f23ebd306b21f7b27d89303afd63f7b fix. diff -r 0440f2f19f23 -r a0ab0c6925bd Makefile.mac --- a/Makefile.mac Sun Dec 26 22:54:11 2010 +0900 +++ b/Makefile.mac Sun Dec 26 23:40:56 2010 +0900 @@ -37,4 +37,4 @@ .cc.o: $(CC) $(CFLAGS) $(INCLUDES) -c $< -o $@ -debug.o:debug.h +debug.o:debug.h \ No newline at end of file diff -r 0440f2f19f23 -r a0ab0c6925bd TaskDandy.cc --- a/TaskDandy.cc Sun Dec 26 22:54:11 2010 +0900 +++ b/TaskDandy.cc Sun Dec 26 23:40:56 2010 +0900 @@ -80,12 +80,14 @@ static int screen_w; static int screen_h; +static int gamef; MainLoopPtr Dandy::init(Viewer *sgroot_, int w, int h) { screen_w = w; screen_h = h; + gamef = 0; sgroot = sgroot_; tmanager = sgroot->manager; return sgroot; @@ -111,11 +113,10 @@ return 0; }; -static int gamef = 0; -HTaskPtr +HTaskPtr Dandy::application_task(HTaskPtr next, Viewer* viewer){ - // printf("gamef = %d\n",gamef); +// printf("gamef = %d\n",gamef); switch (gamef) { case 0: gamef= dandy_main_init(gamef); break; case 1: gamef= gamesyokika(gamef); break;