the check should be for one entity

This commit is contained in:
Corwin 2023-08-29 22:03:42 +01:00
parent b7c10742af
commit 7d907d014f
No known key found for this signature in database

View file

@ -365,7 +365,7 @@ impl EntityMap {
if let Some((_other_teleporter_key, other_teleporter)) = other_teleporter { if let Some((_other_teleporter_key, other_teleporter)) = other_teleporter {
let location_to_teleport_to = other_teleporter.location; let location_to_teleport_to = other_teleporter.location;
if self.whats_at(location_to_teleport_to).count() != 0 { if self.whats_at(location_to_teleport_to).count() == 1 {
//ok, we can teleport //ok, we can teleport
remove_move_animation_for_entity(animations, entity_to_update_key); remove_move_animation_for_entity(animations, entity_to_update_key);
animations.push(AnimationInstruction::Move( animations.push(AnimationInstruction::Move(