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
commitf87b1df56681f82521f0954e92aacf2944c55730 (patch)
tree35a226761e654a0b5a901520781c6288e028bac3
parent3bba6e4abdeeb946643ae62858d91b500229aad1 (diff)
downloadopenttd-f87b1df56681f82521f0954e92aacf2944c55730.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;