When on edge of being burdened the condition doesn't lower as you run.
I'm carrying 375/375 weight of items. When I run the condition doesn't lower so i can run forever. But when I drop some items the condition is working as it should.
There must be sneaky "<" operator instead of "<=" in some conditions.
Just a guess, but it looks like it could be because of this line?
Just a guess
Your guess is right. There should be "<= 1".
Should this issue be marked as being for 0.42.0? I thought that that version had been completed months ago?
Are floating-point equalities really a good idea? I'm not familiar with the code, but I would think that it would be better to insert a check to see if the player is actually moving, rather than checking their encumbrance.
- Target version deleted (
Are floating-point equalities really a good idea?
We are already use the same approach to check if a player is overburdened in inputmanagerimp.cpp
- Status changed from New to Resolved
- Target version set to openmw-0.43
- % Done changed from 0 to 100
- Status changed from Resolved to Closed
- Assignee set to Andrei Kortunov
Also available in: Atom