Skip to content

Commit

Permalink
Fix local elevators moving Amy before teleporting
Browse files Browse the repository at this point in the history
  • Loading branch information
Helco committed Jan 26, 2024
1 parent 9831c7a commit 37f843c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion zzre/game/systems/gameflow/Teleporter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,9 @@ private void HandleActiveTrigger(in DefaultEcs.Entity entity, in components.Acti
}

game.Publish(new messages.Teleport(sceneId: unchecked((int)trigger.ii3), targetEntry: (int)trigger.ii2));
game.Publish(new messages.CreaturePlaceToTrigger(game.PlayerEntity, (int)trigger.idx));

// Apparently having gone through states 2 or 8 can cause this to happen if subsequently using an in-scene elevator...
//game.Publish(new messages.CreaturePlaceToTrigger(game.PlayerEntity, (int)trigger.idx));
}

private void HandleTeleport(in messages.Teleport message)
Expand Down

0 comments on commit 37f843c

Please sign in to comment.