#3407 closed defect (fixed)
Map Controlled Percentage bug.
Reported by: | Stan | Owned by: | leper |
---|---|---|---|
Priority: | Should Have | Milestone: | Alpha 19 |
Component: | Core engine | Keywords: | patch |
Cc: | s0600204 | Patch: |
Description
How to reproduce :
- In atlas, raise the water level until there is no ground, in my case it crashes.
Attachments (2)
Change History (6)
comment:1 by , 9 years ago
Cc: | added |
---|---|
Milestone: | Backlog → Alpha 19 |
comment:2 by , 9 years ago
Keywords: | patch review added |
---|
Yep, sounds about right.
I'd prefer not setting the passable cells to -1 (and returning 0), because if a user hasn't returned the water level to below the ground by the next time the function in question is called, then Atlas will crash at the same point.
Note:
See TracTickets
for help on using tickets.
Should be an assertion failure at ps/trunk/source/simulation2/components/CCmpTerritoryManager.cpp#L543, right? In which case we should just check if we have 0 after computing the passable cells and return 0 (or set it to -1 and return 0).