mirror of https://github.com/OpenTTD/OpenTTD.git
(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 none of the non-locked options are set */
|
||||||
if ((_transparency_opt & ~_transparency_lock) == 0) {
|
if ((_transparency_opt & ~_transparency_lock) == 0) {
|
||||||
/* set all non-locked options */
|
/* set all non-locked options */
|
||||||
_transparency_opt |= ~_transparency_lock;
|
_transparency_opt |= GB(~_transparency_lock, 0, TO_END);
|
||||||
} else {
|
} else {
|
||||||
/* clear all non-locked options */
|
/* clear all non-locked options */
|
||||||
_transparency_opt &= _transparency_lock;
|
_transparency_opt &= _transparency_lock;
|
||||||
|
|
Loading…
Reference in New Issue