summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2008-02-29 15:20:02 +0000
committerpeter1138 <peter1138@openttd.org>2008-02-29 15:20:02 +0000
commitde97cdc11367ffc31ac09d59b99f314eb193e57a (patch)
tree35a226761e654a0b5a901520781c6288e028bac3
parent5eb431661fb4ce595acec5bb115af806a6c54d5c (diff)
downloadopenttd-de97cdc11367ffc31ac09d59b99f314eb193e57a.tar.xz
(svn r12320) -Fix [FS#1817]: Wrong transparency options could be saved after toggling all.
-rw-r--r--src/transparency.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/transparency.h b/src/transparency.h
index b69a16300..eb19d6938 100644
--- a/src/transparency.h
+++ b/src/transparency.h
@@ -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;