Mercurial > hg > Members > koba > t_dandy
comparison 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 |
comparison
equal
deleted
inserted
replaced
45:e01948ce859a | 47:f5e112bffe26 |
---|---|
31 #include "Character_state.h" | 31 #include "Character_state.h" |
32 #include "property.h" | 32 #include "property.h" |
33 #include "state_task.h" | 33 #include "state_task.h" |
34 | 34 |
35 static int use_keybord = 0; | 35 static int use_keybord = 0; |
36 static int cdp[20] = { 16, 16, 16, 17, 18, 0 }; | 36 //static int cdp[20] = { 16, 16, 16, 17, 18, 0 }; |
37 static int d, i; | 37 static int i; |
38 | 38 |
39 static int rswait = 0; | 39 static int rswait = 0; |
40 static int cf = 0; | 40 static int cf = 0; |
41 static int cc = 0; | 41 static int cc = 0; |
42 | 42 |
376 PadfileWrite(first); | 376 PadfileWrite(first); |
377 PadfileClose(first); | 377 PadfileClose(first); |
378 } else if (runmode == 2) { | 378 } else if (runmode == 2) { |
379 PadfileClose(first); | 379 PadfileClose(first); |
380 } | 380 } |
381 SDL_Event user_event; | |
382 user_event.type = SDL_QUIT; | |
383 SDL_PushEvent(&user_event); | |
381 | 384 |
382 //_______________________________________________ | 385 //_______________________________________________ |
383 // SDL_mixerの後始末 | 386 // SDL_mixerの後始末 |
384 Mix_CloseAudio(); | 387 Mix_CloseAudio(); |
385 Mix_HaltMusic(); | 388 Mix_HaltMusic(); |
473 } | 476 } |
474 | 477 |
475 static int | 478 static int |
476 game_pause(int gamef) | 479 game_pause(int gamef) |
477 { | 480 { |
478 gamef = 3; | |
479 if (jiki.zanki != 0 && jiki.bf != FALSE) { | 481 if (jiki.zanki != 0 && jiki.bf != FALSE) { |
480 if (pad[0].se == 1) { | 482 if (pad[0].se == 1) { |
481 //Mix_Pause(BGM); | 483 //Mix_Pause(BGM); |
482 PauseSdlMixer(BGM); | 484 PauseSdlMixer(BGM); |
483 while(1){ | 485 while(1){ |