Opened 8 years ago

Last modified 7 years ago

#4295 closed defect

Berries on impassable mountains on ardennes forests — at Initial Version

Reported by: elexis Owned by:
Priority: Nice to Have Milestone: Alpha 22
Component: Maps Keywords: patch
Cc: Patch:

Description

Sometimes berries can be placed onto impassable mountains on the map ardennes forest. The women trying to pick them will not detect this.

The bug can be easily reproduced by increasing the number of berries by a factor of 100.

The placing of berries on that map does not consider explorableArea like other calls. However adding that alone doesn't fix it, presumably because it only checks the x/y coordinate while neglecting the spatial size of the group.

It seems bad practice to use an array with points for explorableArea. Instead it should probably just call addToClass for those tiles, so that berries can do avoidClasses with a bigger radius.

Bug reported by fatherbushido.

Change History (0)

Note: See TracTickets for help on using tickets.