diff options
author | peter1138 <peter1138@openttd.org> | 2008-02-29 15:20:02 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2008-02-29 15:20:02 +0000 |
commit | de97cdc11367ffc31ac09d59b99f314eb193e57a (patch) | |
tree | 35a226761e654a0b5a901520781c6288e028bac3 | |
parent | 5eb431661fb4ce595acec5bb115af806a6c54d5c (diff) | |
download | openttd-de97cdc11367ffc31ac09d59b99f314eb193e57a.tar.xz |
(svn r12320) -Fix [FS#1817]: Wrong transparency options could be saved after toggling all.
-rw-r--r-- | src/transparency.h | 2 |
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; |