Opened 6 years ago
Closed 6 years ago
#4937 closed defect (fixed)
Unreachable trees on random map Oasis
Reported by: | Imarok | Owned by: | elexis |
---|---|---|---|
Priority: | Must Have | Milestone: | Alpha 23 |
Component: | Maps | Keywords: | |
Cc: | Patch: |
Description (last modified by )
Almost every time there are unreachable trees in the water. Here is an example with Phab:rP20803 seed 1085716770 and map size normal:
(the trees outside the colored region are unreachable)
Attachments (1)
Change History (4)
by , 6 years ago
Attachment: | screenshot0136.png added |
---|
comment:1 by , 6 years ago
Description: | modified (diff) |
---|
comment:2 by , 6 years ago
Cc: | removed |
---|---|
Component: | UI & Simulation → Maps |
Thanks for the hierarchical pathfinder trick, I wasn't aware.
This stupid bug cost me hours. The crux is that both water and forest are created in the same statement and that it is probably a feature that half of the trees are submerged in water.
Just splitting water and forest generation would work well no matter what numbers are chosen. But it looks nice to have some trees submerged, so I'll keep the weird algorithm, move the magic numbers to constants and fine-tune them to avoid the issue.
This will make placing a dock more feasible too and not an exception.
Thanks for the report!
Unreachable trees on Oasis