world-of-might-and-magic
world-of-might-and-magic copied to clipboard
Party can't die of exhaustion
Describe the bug This needs to be re-tested, creating an issue b/c this is what I saw when experimenting. So, it might be a non-issue.
If you wait long enough w/o entering the wait screen, characters go crazy. And fall unconscious. If they all fall unconscious, the game doesn't end with the death screen. Instead, the party eye level is set to ground level, and the game continues.
Note that this doesn't work on the wait screen.
To Reproduce Leave the game running for a couple days X).
Seriously though, this is easily reproducible with a test, but will need some hacking that I'll get around to later.
Expected behavior Party should die of exhaustion.
Environment (please complete the following information):
- OS: OSX
- Architecture: M1
Screenshots None.
Saved game file None.
Additional context None.
Tried it without Framecap and with Cheatengine on 500 Times speed. Maybe I skipped an Event that's problematic, because at 88 miles per hour i saw some crazy stuff ( I walked through a building) If someone can tell me how to test for this I'll test more
- Windows 11
- AMD Ryzen 5600
- Nvidia RTX 4070
I'll get around to re-test it in a couple of weeks. It's a few lines of code in the engine.
Tested this again. Basically, party dies, but death screen isn't displayed:
Can't write a test for this b/c of this code in Timer::tick
:
if (_dt > 32_ticks)
_dt = 32_ticks; // 32 is 250ms
Will think what to do about it.
Well, it's even more bugged:
https://github.com/OpenEnroth/OpenEnroth/assets/73941350/17797e17-6444-4e14-b91e-4487268cfb24