world-of-might-and-magic
world-of-might-and-magic copied to clipboard
BLV_GetFloorLevel and IndoorLocation::GetSector fail too much
Describe the bug Both of these functions are failing too much and spamming to logging. In severe cases by thousands messages in a second.
To Reproduce
- Load attach savegame file
- You will be immediately flooded with Sector/Floorlvl fail messages
Expected behavior GetFloorlevel fail should occur more rarely and GetSector never fail.
Screenshots
Saved game file save004.zip
Additional context Savegame file also triggers #195. So it requires to be resolved before undertaking this issue.
So the errors from this save file are because of these two hanging out halfway up the wall.
Additionally getsector can be allowed to fail in certain circumstances (such as line of sight checks).