Author Topic: [BUG][PLAYER] Swimmer warping to an portal in water immediately warps back  (Read 825 times)

0 Members and 1 Guest are viewing this topic.

Offline namida

  • Administrator
  • Posts: 12190
    • View Profile
    • NeoLemmix Website
To reproduce:

1. Place a pair of portals such that Portal A is not in water, and Portal B is in water. It does not matter whether Portal B is underwater or on the surface, as long as the receive point (bottom-middle of the trigger area) overlaps the water's trigger area.
2. Send a swimmer into Portal A.

Expected: Swimmer warps to Portal B then begins swimming.
Actual behavior: Swimmer warps to Portal B, then immediately warps back to Portal A. Non-swimmers behave as expected. Swimmers behave as expected if Portal A is also in water (whether Portal B is in water as well or not).
My Lemmings projects
2D Lemmings: NeoLemmix (engine) | Lemmings Plus Series (level packs) | Doomsday Lemmings (level pack)
3D Lemmings: Loap (engine) | L3DEdit (level / graphics editor) | L3DUtils (replay / etc utility) | Lemmings Plus 3D (level pack)

Offline namida

  • Administrator
  • Posts: 12190
    • View Profile
    • NeoLemmix Website
Re: [BUG][PLAYER] Swimmer warping to an portal in water immediately warps back
« Reply #1 on: December 15, 2021, 02:58:37 AM »
The reason this happens seems to be because the lemming arrives as a faller, therefore moves downwards (and thus, out of the portal's trigger area) before transitioning to a swimmer. That this happens feels like a bug in and of itself, and fixing that should also correct this bug.

Additionally, all evidence suggests this bug would also happen with teleporters, so will be fixed for those in 12.13.X regardless of what happens with the portal.

Fixed for teleporters in commit 6856bfc, and then for portals in commit 27e5c3c.
« Last Edit: December 15, 2021, 03:18:21 AM by namida »
My Lemmings projects
2D Lemmings: NeoLemmix (engine) | Lemmings Plus Series (level packs) | Doomsday Lemmings (level pack)
3D Lemmings: Loap (engine) | L3DEdit (level / graphics editor) | L3DUtils (replay / etc utility) | Lemmings Plus 3D (level pack)