#3855 closed defect (fixed)
[PATCH] Health / capture point round error
Reported by: | bb | Owned by: | sanderd17 |
---|---|---|---|
Priority: | Should Have | Milestone: | Alpha 21 |
Component: | UI & Simulation | Keywords: | patch |
Cc: | Patch: |
Description (last modified by )
Attachments (2)
Change History (10)
by , 8 years ago
Attachment: | womanhealthround.2.diff added |
---|
comment:1 by , 8 years ago
comment:2 by , 8 years ago
Keywords: | patch review removed |
---|---|
Milestone: | Alpha 20 → Backlog |
Thanks to bb, we discovered some related issues to this. F.e. the current hitpoints are rounded in GuiInterface, but also in various gui pages (which wouldn't be needed).
And the max hp should probably be rounded in the same places as the current hp.
The same would also count for capture points.
The fix above was made to just modify as few code and functionality as possible (since we're close to release). But this should be investigated further.
So this ticket isn't fixed yet.
comment:3 by , 8 years ago
Summary: | [PATCH] woman round error → [PATCH] Health / capture point round error |
---|
comment:4 by , 8 years ago
You have to be careful when rounding values in the simulation that the same roundings are applied in AIInterface so that the AI is consistent. We had cases in the past with the AI trying endlessly to repair a structure because it did not have the same rounding as in the simulation. There are big chances that the roundings from the patch womanhealthround.2.diff would give troubles, while r17951 should be fine as the Health/Max was already rounded when ApplyValueModificationsToEntity and in AIInterface.
comment:5 by , 8 years ago
Keywords: | patch review added |
---|---|
Milestone: | Backlog → Alpha 21 |
comment:6 by , 8 years ago
Description: | modified (diff) |
---|
comment:8 by , 8 years ago
Keywords: | review removed |
---|
In 17951: