Skip to content

Commit

Permalink
version 24.0, also fix saving issue involving save as current name an…
Browse files Browse the repository at this point in the history
…d tabs
  • Loading branch information
jacob1 committed Jul 13, 2013
1 parent 95fca18 commit 1372e7b
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 7 deletions.
15 changes: 15 additions & 0 deletions build/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -518,6 +518,21 @@ Fix all the textboxes in the deco editor being focused by default. Fix bug where
if you left the deco editor in certain ways, you couldn't click or use the
keyboard

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




Expand Down
6 changes: 3 additions & 3 deletions includes/defines.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@
#define BUILD_NUM 271
//VersionInfoEnd

#define MOD_VERSION 23
#define MOD_MINOR_VERSION 1
#define MOD_VERSION 24
#define MOD_MINOR_VERSION 0
#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
#define MOD_BUILD_VERSION 18 //For update checks
#define MOD_BUILD_VERSION 19 //For update checks
#define BETA_VERSION 88
#define BETA_MINOR_VER 0
#define RELEASE_VERSION 87
Expand Down
9 changes: 8 additions & 1 deletion src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2730,11 +2730,18 @@ int main(int argc, char *argv[])
else
{
int oldsave_as = save_as;
if (svf_modsave && check_save(2,0,0,XRES,YRES,0))
int can_publish = check_save(2,0,0,XRES,YRES,0);
if (can_publish)
{
svf_publish = 0;
svf_modsave = 1;
save_as = 3;
}
else
{
svf_modsave = 0;
save_as = 5;
}
if (execute_save(vid_buf))
{
itc = 200;
Expand Down
9 changes: 6 additions & 3 deletions src/save.c
Original file line number Diff line number Diff line change
Expand Up @@ -1347,9 +1347,12 @@ int parse_save_OPS(void *save, int size, int replace, int x0, int y0, unsigned c
clear_sim();
oldnumballs = 0;
erase_bframe();
svf_modsave = mod_save = 0;
if (inputData[2] == 'J')
svf_modsave = 1;
if (replace == 1)
{
svf_modsave = mod_save = 0;
if (inputData[2] == 'J')
svf_modsave = 1;
}
}

bson_init_data(&b, (char*)bsonData);
Expand Down

0 comments on commit 1372e7b

Please sign in to comment.