Skip to content

Commit

Permalink
fix: race generation in explosion mode (#59)
Browse files Browse the repository at this point in the history
* fix: race generation in explosion mode

* chore: add a changelog entry
  • Loading branch information
florianvazelle authored Apr 6, 2024
1 parent f895672 commit 9800f39
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
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

0 comments on commit 9800f39

Please sign in to comment.