Skip to content

Commit

Permalink
Fix error in RandomPhysicsMutator
Browse files Browse the repository at this point in the history
  • Loading branch information
Rolv-Arild committed Feb 16, 2025
1 parent 882f6b8 commit 32e6d2b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def apply(self, state: GameState, shared_info: Dict[str, Any]) -> None:
[SIDE_WALL_X - padding, BACK_WALL_Y - padding, CEILING_Z - padding])

# Some checks to make sure we don't place it outside the field
if abs(new_pos[0]) + abs(new_pos) >= 8064 - padding:
if abs(new_pos[0]) + abs(new_pos[1]) >= 8064 - padding:
continue
close_to_wall = (abs(new_pos[0]) >= SIDE_WALL_X - RAMP_HEIGHT
or abs(new_pos[1]) >= BACK_WALL_Y - RAMP_HEIGHT
Expand Down
5 changes: 4 additions & 1 deletion rlgym_tools/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,13 @@
# 3) we can import it into your module module
# https://stackoverflow.com/questions/458550/standard-way-to-embed-version-into-python-package

__version__ = '2.2.0'
__version__ = '2.2.1'


release_notes = {
'2.2.1': """
- Fix error in RandomPhysicsMutator
""",
'2.2.0': """
- Add V1 objects and V2 to V1 conversion functions.
""",
Expand Down

0 comments on commit 32e6d2b

Please sign in to comment.