mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-23 08:11:33 +11:00
the check should be for one entity
This commit is contained in:
parent
b7c10742af
commit
7d907d014f
|
@ -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(
|
||||||
|
|
Loading…
Reference in a new issue