Skip to content

Commit

Permalink
Fix upper bound for slime blob spread speed in the param editor
Browse files Browse the repository at this point in the history
  • Loading branch information
AliceLR committed Oct 7, 2019
1 parent 07f696a commit 1554196
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
10 changes: 10 additions & 0 deletions docs/changelog.txt
@@ -1,3 +1,13 @@
GIT

USERS

+ Fixed the upper bound of the slime blob's spread speed setting
when editing a slime blob. The valid range for this has only
ever been 1-4; selecting higher values would change the slime
blob's cycle counter and could corrupt its other settings.


September 23rd, 2019 - MZX 2.92b

This release fixes several bugs, notably 3DS and Wii rendering
Expand Down
2 changes: 1 addition & 1 deletion src/editor/param.c
Expand Up @@ -636,7 +636,7 @@ static int pe_slime_blob(struct world *mzx_world, int param)

set_confirm_buttons(elements);
elements[2] = construct_number_box(15, 6, "Spread speed: ",
1, 8, NUMBER_LINE, &speed);
1, 4, NUMBER_LINE, &speed);
elements[3] = construct_check_box(15, 8, check_strings,
2, 12, check_results);

Expand Down
4 changes: 4 additions & 0 deletions src/game_update_board.c
Expand Up @@ -798,6 +798,10 @@ void update_board(context *ctx)
int new_x, new_y;
current_color = level_color[level_offset];
// Clear cycle
// BUG: This leaves the lowest cycle count bit set, which can't
// be fixed right now (compatibility). Seems like Alexis planned
// to extend the speed range in 2.00 but didn't fully implement
// it; the param dialog previously had the wrong bound too...
current_param &= 0xC7;

// Put slimes all around
Expand Down

0 comments on commit 1554196

Please sign in to comment.