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.69k stars 375 forks source link

Adventure map, the adventure map is recentered after the last adventure map event window is closed #4390

Open LeHerosInconnu opened 2 years ago

LeHerosInconnu commented 2 years ago

Preliminary checks

Platform

Windows

Describe the bug

In fheroes2, the adventure map is recentered after the last adventure map event window is closed.

In fheroes2:

Screen centered after event windows 01

https://user-images.githubusercontent.com/43583994/136814723-03b27d1a-167f-4334-bca4-fc8a31e2f40e.mp4

Save file

Here is the scenario test file: 0 9952.zip

Additional info

Version 0.9.8 4311

ihhub commented 2 years ago

Hi @LeHerosInconnu , is it still valid? I think we fixed such behavior in the past.

LeHerosInconnu commented 2 years ago

Hello @ihhub,

Hi @LeHerosInconnu , is it still valid? I think we fixed such behavior in the past.

I tested it with the version 0.9.17 5675 and it is still the case.

ihhub commented 1 year ago

Also we are calling an hero's action event twice.