From 6955455db3b79ade740cc1196fd142747515dfcc Mon Sep 17 00:00:00 2001 From: Manuel Camejo Date: Tue, 27 Aug 2024 17:04:40 -0300 Subject: [PATCH] Fix collisionable entities initialization inside enum reduce. Also fix typo. (#883) --- apps/arena/lib/arena/game_updater.ex | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/arena/lib/arena/game_updater.ex b/apps/arena/lib/arena/game_updater.ex index ed17da64a..999791341 100644 --- a/apps/arena/lib/arena/game_updater.ex +++ b/apps/arena/lib/arena/game_updater.ex @@ -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