Skip to content

Commit e84aebe

Browse files
committed
Clear world now resets the world compatibility version.
1 parent 5597800 commit e84aebe

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

docs/changelog.txt

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ USERS
1313
+ The softscale renderer now respects disable_screensaver.
1414
+ HTML5: fixed the poor performance of FREADn and other features
1515
that rely on calculating the length of an open file.
16+
+ Clear world (Alt+R) now resets the world version.
1617
+ Setting a string offset, limit, or splice to FREADn now
1718
respects the provided limit. If n is larger than the limit,
1819
n total bytes will still be read (up to the maximum string

src/editor/edit.c

-1
Original file line numberDiff line numberDiff line change
@@ -3909,7 +3909,6 @@ static void __edit_world(context *parent, boolean reload_curr_file)
39093909
clear_world(mzx_world);
39103910
clear_global_data(mzx_world);
39113911
}
3912-
mzx_world->version = MZX_VERSION;
39133912
mzx_world->active = 1;
39143913

39153914
create_blank_world(mzx_world);

src/editor/world.c

+2
Original file line numberDiff line numberDiff line change
@@ -458,6 +458,8 @@ void create_blank_world(struct world *mzx_world)
458458
// Make a blank board
459459
int i;
460460

461+
mzx_world->version = MZX_VERSION;
462+
461463
mzx_world->num_boards = 1;
462464
mzx_world->num_boards_allocated = 1;
463465
mzx_world->board_list = cmalloc(sizeof(struct board *));

0 commit comments

Comments
 (0)