Skip to content

Commit

Permalink
fix fn move
Browse files Browse the repository at this point in the history
  • Loading branch information
whatthedev-eth committed Aug 3, 2023
1 parent 60272a6 commit fb502a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/enemy.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ mod move_enemies {
let new_y = if y <= velocity + height {
GRID_HEIGHT + y + height - velocity
} else {
y - (velocity + height)
y - velocity
};

Position {
Expand Down
2 changes: 1 addition & 1 deletion src/racer.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -824,7 +824,7 @@ mod tests {
}

#[test]
#[available_gas(20000000)]
#[available_gas(200000000)] // Made 10x
fn test_collision_check_123() {
// Vehicle 1, no collision
let vehicle_1 = vehicle_for_tests(TestVehicle::Vehicle_1(()));
Expand Down

0 comments on commit fb502a4

Please sign in to comment.