diff TaskDandy.cc @ 47:f5e112bffe26

fix old version.
author koba <koba@cr.ie.u-ryukyu.ac.jp>
date Tue, 18 Jan 2011 19:35:58 +0900
parents e01948ce859a
children 6cfd912a602d
line wrap: on
line diff
--- a/TaskDandy.cc	Sat Jan 15 19:13:03 2011 +0900
+++ b/TaskDandy.cc	Tue Jan 18 19:35:58 2011 +0900
@@ -33,8 +33,8 @@
 #include "state_task.h"
 
 static int use_keybord = 0;
-static int cdp[20] = { 16, 16, 16, 17, 18, 0 };
-static int d, i;
+//static int cdp[20] = { 16, 16, 16, 17, 18, 0 };
+static int i;
 
 static int rswait = 0;
 static int cf = 0;
@@ -378,6 +378,9 @@
     } else if (runmode == 2) {
 	PadfileClose(first);
     }
+    SDL_Event user_event;
+    user_event.type = SDL_QUIT;
+    SDL_PushEvent(&user_event);
 
     //_______________________________________________
     // SDL_mixerの後始末
@@ -475,7 +478,6 @@
 static int
 game_pause(int gamef)
 {
-    gamef = 3;
     if (jiki.zanki != 0 && jiki.bf != FALSE) {
 	if (pad[0].se == 1) {
 	    //Mix_Pause(BGM);