You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ResetRestoreAllTransparency() in transparency.h also set/cleared bits of non-existant transparency options. This in combination with the transparency locks led to wrongly set transparency options when exiting and reentering the game.
Steps to reproduce:
- launch OpenTTD
- start new game
- set transparency locks on any option(s) (not all)
- toggle transparency (it should be ON now for all non-locked options)
- exit game to OS
- launch OpenTTD
- start new game
=> wrong transparency options set (also the locked ones)
This patch should fix the bug. Modified ResetRestoreAllTransparency() to not change any bits outside of the existing number of transparency options.
Also fixed one typo and added a comment in transparency_gui.cpp that was missed when the ninth transparency option was added.
Roujin opened the ticket and wrote:
Attachments
Reported version: trunk
Operating system: All
This issue was imported from FlySpray: https://bugs.openttd.org/task/1817
The text was updated successfully, but these errors were encountered: