Make g.coder->lvl_is_joined a boolean

Its value is only used as a boolean, so there's no real need to keep it
as a confusing int.

Shouldn't be a save-breaking change; it doesn't look like g.coder is
saved.
This commit is contained in:
copperwater
2021-02-18 18:19:48 -05:00
committed by Pasi Kallinen
parent 7bc8d98ea3
commit fa3041c9f9
3 changed files with 3 additions and 3 deletions

View File

@@ -91,7 +91,7 @@ struct sp_coder {
struct mkroom *tmproomlist[MAX_NESTED_ROOMS + 1];
boolean failed_room[MAX_NESTED_ROOMS + 1];
int n_subroom;
int lvl_is_joined;
boolean lvl_is_joined;
boolean check_inaccessibles;
int allow_flips;
};

View File

@@ -6103,7 +6103,7 @@ sp_level_coder_init(void)
coder->allow_flips = 3; /* allow flipping level horiz/vert */
coder->croom = NULL;
coder->n_subroom = 1;
coder->lvl_is_joined = 0;
coder->lvl_is_joined = FALSE;
coder->room_stack = 0;
splev_init_present = FALSE;

View File

@@ -61,7 +61,7 @@ function test_level_init()
des.level_init({ style = "mines", fg = ".", bg = "}", joined = true });
des.reset_level();
des.level_init({ style = "mines", fg = ".", bg = "L", smoothed = 1, joined = 1, lit = 0 });
des.level_init({ style = "mines", fg = ".", bg = "L", smoothed = true, joined = true, lit = 0 });
des.reset_level();
des.level_init({ style = "mines", fg = ".", bg = " ", smoothed = true, joined = true, walled = true });