Ruin0x11 / OpenNefia

(Archived) Moddable engine reimplementation of the Japanese roguelike Elona.
MIT License
116 stars 18 forks source link

Bugs with updating the screen in the middle of scrolling #355

Open Ruin0x11 opened 3 years ago

Ruin0x11 commented 3 years ago

Because calling Gui.update_screen() invalidates tile indices, it will cause errors if scrolling is ongoing, since scrolling depends on the chip indices staying the same for the entire scrolling part, and that gets cleared on a screen refresh. With the current implementation, any ongoing scrolling should at least be cancelled first if a screen update happens.