mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-29 19:00:33 +02:00
right click reload button to go back to open_ui, reload button disappears when clear button used
(amended since TPT doesn't have the instant_open argument to open_ui)
This commit is contained in:
@@ -2273,6 +2273,8 @@ int main(int argc, char *argv[])
|
|||||||
svf_description[0] = 0;
|
svf_description[0] = 0;
|
||||||
gravityMode = 0;
|
gravityMode = 0;
|
||||||
airMode = 0;
|
airMode = 0;
|
||||||
|
svf_last = NULL;
|
||||||
|
svf_lsize = 0;
|
||||||
}
|
}
|
||||||
if (x>=(XRES+BARSIZE-(510-385)) && x<=(XRES+BARSIZE-(510-476)))
|
if (x>=(XRES+BARSIZE-(510-385)) && x<=(XRES+BARSIZE-(510-476)))
|
||||||
{
|
{
|
||||||
@@ -2323,7 +2325,10 @@ int main(int argc, char *argv[])
|
|||||||
}
|
}
|
||||||
if (x>=19 && x<=35 && svf_last && !bq) {
|
if (x>=19 && x<=35 && svf_last && !bq) {
|
||||||
//int tpval = sys_pause;
|
//int tpval = sys_pause;
|
||||||
|
if (b == 1 || !strncmp(svf_id,"",8))
|
||||||
parse_save(svf_last, svf_lsize, 1, 0, 0, bmap, vx, vy, pv, fvx, fvy, signs, parts, pmap);
|
parse_save(svf_last, svf_lsize, 1, 0, 0, bmap, vx, vy, pv, fvx, fvy, signs, parts, pmap);
|
||||||
|
else
|
||||||
|
open_ui(vid_buf, svf_id, NULL);
|
||||||
//sys_pause = tpval;
|
//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)
|
||||||
|
Reference in New Issue
Block a user