mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-29 10:49:53 +02:00
Improved pause flag, will now only pause, not unpause the game
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
#endif
|
||||
|
||||
#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 BETA
|
||||
|
||||
|
11
src/main.c
11
src/main.c
@@ -429,7 +429,9 @@ int parse_save(void *save, int size, int replace, int x0, int y0)
|
||||
{
|
||||
if(ver>=44){
|
||||
legacy_enable = c[3]&0x01;
|
||||
sys_pause = (c[3]>>1)&0x01;
|
||||
if(!sys_pause){
|
||||
sys_pause = (c[3]>>1)&0x01;
|
||||
}
|
||||
} else {
|
||||
if(c[3]==1||c[3]==0){
|
||||
legacy_enable = c[3];
|
||||
@@ -1948,8 +1950,11 @@ int main(int argc, char *argv[])
|
||||
memset(fire_g, 0, sizeof(fire_g));
|
||||
memset(fire_b, 0, sizeof(fire_b));
|
||||
}
|
||||
if(x>=19 && x<=35 && svf_last && svf_open && !bq)
|
||||
parse_save(svf_last, svf_lsize, 1, 0, 0);
|
||||
if(x>=19 && x<=35 && svf_last && svf_open && !bq){
|
||||
//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(b & SDL_BUTTON_LMASK)
|
||||
|
Reference in New Issue
Block a user