Improved pause flag, will now only pause, not unpause the game

This commit is contained in:
Simon
2010-12-08 01:15:00 +00:00
parent b4f2ddf585
commit 96da331601
2 changed files with 9 additions and 4 deletions

View File

@@ -8,7 +8,7 @@
#endif #endif
#define SAVE_VERSION 44 #define SAVE_VERSION 44
#define MINOR_VERSION 5 #define MINOR_VERSION 6
#define IDENT_VERSION "G" //Change this if you're not Simon! It should be a single letter. #define IDENT_VERSION "G" //Change this if you're not Simon! It should be a single letter.
//#define BETA //#define BETA

View File

@@ -429,7 +429,9 @@ int parse_save(void *save, int size, int replace, int x0, int y0)
{ {
if(ver>=44){ if(ver>=44){
legacy_enable = c[3]&0x01; legacy_enable = c[3]&0x01;
sys_pause = (c[3]>>1)&0x01; if(!sys_pause){
sys_pause = (c[3]>>1)&0x01;
}
} else { } else {
if(c[3]==1||c[3]==0){ if(c[3]==1||c[3]==0){
legacy_enable = c[3]; legacy_enable = c[3];
@@ -1948,8 +1950,11 @@ int main(int argc, char *argv[])
memset(fire_g, 0, sizeof(fire_g)); memset(fire_g, 0, sizeof(fire_g));
memset(fire_b, 0, sizeof(fire_b)); memset(fire_b, 0, sizeof(fire_b));
} }
if(x>=19 && x<=35 && svf_last && svf_open && !bq) if(x>=19 && x<=35 && svf_last && svf_open && !bq){
parse_save(svf_last, svf_lsize, 1, 0, 0); //int tpval = sys_pause;
parse_save(svf_last, svf_lsize, 1, 0, 0);
//sys_pause = tpval;
}
if(x>=(XRES+BARSIZE-(510-476)) && x<=(XRES+BARSIZE-(510-491)) && !bq) if(x>=(XRES+BARSIZE-(510-476)) && x<=(XRES+BARSIZE-(510-491)) && !bq)
{ {
if(b & SDL_BUTTON_LMASK) if(b & SDL_BUTTON_LMASK)