ihhub / fheroes2

fheroes2 is a recreation of Heroes of Might and Magic II game engine.
https://ihhub.github.io/fheroes2/
GNU General Public License v2.0
2.65k stars 371 forks source link

Adventure map, boat shadow is not rendered fully #7560

Open Branikolog opened 1 year ago

Branikolog commented 1 year ago

Preliminary checks

Platform

Windows

Describe the bug

https://github.com/ihhub/fheroes2/assets/55348946/9ac703ba-30e9-461b-84e3-62cf12d398bc

The shadow of the boat nearby is rendered partially.

image

image

Save file

boat shadow.zip

Additional info

No response

ihhub commented 1 year ago

Relates to #5716 .

Districh-ru commented 1 month ago

It seems that this map was a result of incorrect Summon Boat or other action resulting in changed the river delta's layer type from Terrain layer to Object layer:

--------- Level 1 --------
UID             : 1605
ICN object type : 41 (OBJNMUL2.ICN)
image index     : 8
layer type      : 0 - Object layer
is shadow       : no

I've started a new game on the Seven Lakes map, tried to summon a boat and could not reproduce this bug:

https://github.com/user-attachments/assets/7758c5c2-3272-4b22-91d6-5c7cc9083acd

Possibly it is already fixed...