mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-02 04:13:26 +00:00
(svn r12320) -Fix [FS#1817]: Wrong transparency options could be saved after toggling all.
This commit is contained in:
parent
3bba6e4abd
commit
f87b1df566
@ -66,7 +66,7 @@ static inline void ResetRestoreAllTransparency()
|
||||
/* if none of the non-locked options are set */
|
||||
if ((_transparency_opt & ~_transparency_lock) == 0) {
|
||||
/* set all non-locked options */
|
||||
_transparency_opt |= ~_transparency_lock;
|
||||
_transparency_opt |= GB(~_transparency_lock, 0, TO_END);
|
||||
} else {
|
||||
/* clear all non-locked options */
|
||||
_transparency_opt &= _transparency_lock;
|
||||
|
Loading…
Reference in New Issue
Block a user