Skip to content

Commit 1372e7b

Browse files
committed
version 24.0, also fix saving issue involving save as current name and tabs
1 parent 95fca18 commit 1372e7b

File tree

4 files changed

+32
-7
lines changed

4 files changed

+32
-7
lines changed

build/readme.txt

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -518,6 +518,21 @@ Fix all the textboxes in the deco editor being focused by default. Fix bug where
518518
if you left the deco editor in certain ways, you couldn't click or use the
519519
keyboard
520520

521+
Version 24.0 7/12/13
522+
Decrease tool strength by half, holding ctrl slows it more and holding shift
523+
speeds it up. Re-arrange tools menu a little and update the tool and wall
524+
descriptions. A ton of simulation updates and bugfixes from tpt++. Change
525+
internal version number to 88.0 (doesn't affect saving). ctrl+z works better
526+
and goes back to the last time you drew something or opened a save. Overhaul
527+
of tabs. They now save more info inside them, and they have their own thumbnails
528+
and names. Right clicking a tab will delete it, and you can use the reload
529+
button to reload a tab. Ctrl+s to save it and set a new reload point, ctrl+n to
530+
start a new tab, 't' to open / close the tabs menu. If installed, hitting "open"
531+
on the website will open the save in a new tab. Fix tpt.moving_solid. Fix
532+
issue where multiple comments could be highlighted at once in save preview and
533+
console. A bunch of fixes relating to walls and photons with flood fill. Time
534+
enabled by default in HUD.
535+
521536

522537

523538

includes/defines.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@
2929
#define BUILD_NUM 271
3030
//VersionInfoEnd
3131

32-
#define MOD_VERSION 23
33-
#define MOD_MINOR_VERSION 1
32+
#define MOD_VERSION 24
33+
#define MOD_MINOR_VERSION 0
3434
#define MOD_SAVE_VERSION 15 //This is not the version number of my mod anymore, it's only changed when I change the saving code
35-
#define MOD_BUILD_VERSION 18 //For update checks
35+
#define MOD_BUILD_VERSION 19 //For update checks
3636
#define BETA_VERSION 88
3737
#define BETA_MINOR_VER 0
3838
#define RELEASE_VERSION 87

src/main.c

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2730,11 +2730,18 @@ int main(int argc, char *argv[])
27302730
else
27312731
{
27322732
int oldsave_as = save_as;
2733-
if (svf_modsave && check_save(2,0,0,XRES,YRES,0))
2733+
int can_publish = check_save(2,0,0,XRES,YRES,0);
2734+
if (can_publish)
27342735
{
27352736
svf_publish = 0;
2737+
svf_modsave = 1;
27362738
save_as = 3;
27372739
}
2740+
else
2741+
{
2742+
svf_modsave = 0;
2743+
save_as = 5;
2744+
}
27382745
if (execute_save(vid_buf))
27392746
{
27402747
itc = 200;

src/save.c

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1347,9 +1347,12 @@ int parse_save_OPS(void *save, int size, int replace, int x0, int y0, unsigned c
13471347
clear_sim();
13481348
oldnumballs = 0;
13491349
erase_bframe();
1350-
svf_modsave = mod_save = 0;
1351-
if (inputData[2] == 'J')
1352-
svf_modsave = 1;
1350+
if (replace == 1)
1351+
{
1352+
svf_modsave = mod_save = 0;
1353+
if (inputData[2] == 'J')
1354+
svf_modsave = 1;
1355+
}
13531356
}
13541357

13551358
bson_init_data(&b, (char*)bsonData);

0 commit comments

Comments
 (0)