Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: race generation in explosion mode #59

Merged
merged 2 commits into from
Apr 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
### Deprecated
### Removed
### Fixed
- Fix race generation in explosion mode ([#59](https://github.com/MechanicalFlower/Marble/pull/59))
### Security
### Dependencies
- Bump `extractions/setup-just` from 1 to 2 ([#56](https://github.com/MechanicalFlower/Marble/pull/56))
Expand Down
4 changes: 4 additions & 0 deletions scripts/main.gd
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,10 @@ func set_mode(mode):
_race.generate_race(!_explosion_enabled)
_lower_boundary = get_lowest_piece(_race, true).global_transform.origin.y

# Reset values at each new race
_max_checkpoint_count = -1
_old_lap_count = 0

_overlay.reset()
reset_position()

Expand Down