[Bug] [fixed] Won even if drown

Hw 1.0.0
no place to landing for t.box

Thank you for this demo. I have investigated this bug and fixed it in commit 8997e212be4c.

The bug was that the hedgehog was deleted when the timebox fails to find land to stand on. This was the behavior of the FindPlace function. That's why you see the timebox but no hedgehog.

The new behavior is that the timebox returns with the hog inside (as it should) at the same position the timebox was used. Since there is nowhere to stand on, the poor hog will fall.

The CurrentHedgehog will also fall into the water eventually, since there is no place to stand on, thus resulting in a draw.

User login

Copyright © 2004-2023 Hedgewars Project. All rights reserved. [ contact ]