diff options
| author | jacob1 <jfu614@gmail.com> | 2012-07-19 16:58:24 (GMT) |
|---|---|---|
| committer | jacksonmj <mj-pt@jacksonmj.co.uk> | 2012-08-09 22:00:25 (GMT) |
| commit | 45503b4b7b34a5ed6947fcad9780a017da87c867 (patch) | |
| tree | 07e3e50e76eaa152c89898f94d1e6e9312a0d0aa /src | |
| parent | 62224ad13f6a15c5faa78f505ae4ad56cf6f78fe (diff) | |
| download | powder-45503b4b7b34a5ed6947fcad9780a017da87c867.zip powder-45503b4b7b34a5ed6947fcad9780a017da87c867.tar.gz | |
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)
Diffstat (limited to 'src')
| -rw-r--r-- | src/main.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -2273,6 +2273,8 @@ int main(int argc, char *argv[]) svf_description[0] = 0; gravityMode = 0; airMode = 0; + svf_last = NULL; + svf_lsize = 0; } 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) { //int tpval = sys_pause; - parse_save(svf_last, svf_lsize, 1, 0, 0, bmap, vx, vy, pv, fvx, fvy, signs, parts, pmap); + 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); + else + open_ui(vid_buf, svf_id, NULL); //sys_pause = tpval; } if (x>=(XRES+BARSIZE-(510-476)) && x<=(XRES+BARSIZE-(510-491)) && !bq) |
