Skip to content

Commit

Permalink
Fix collisionable entities initialization inside enum reduce. Also fi…
Browse files Browse the repository at this point in the history
…x typo. (#883)
  • Loading branch information
manucamejo authored Aug 27, 2024
1 parent bd88dc2 commit 6955455
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/arena/lib/arena/game_updater.ex
Original file line number Diff line number Diff line change
Expand Up @@ -1201,12 +1201,12 @@ defmodule Arena.GameUpdater do

collided_entity = decide_collided_entity(projectile, collides_with, external_wall.id, players_acc, crates_acc)

collsionable_entities =
Map.merge(players, crates)
collisionable_entities =
Map.merge(players_acc, crates_acc)

process_projectile_collision(
projectile,
Map.get(collsionable_entities, collided_entity),
Map.get(collisionable_entities, collided_entity),
Map.get(obstacles, collided_entity),
collided_entity == external_wall.id,
accs
Expand Down

0 comments on commit 6955455

Please sign in to comment.