diff options
author | Patric Stout <truebrain@openttd.org> | 2019-02-23 22:03:48 +0100 |
---|---|---|
committer | Patric Stout <truebrain@openttd.org> | 2019-02-24 01:11:08 +0100 |
commit | 91eee793e1632c124c22ee46911e7de5fb3a2362 (patch) | |
tree | d047ebe6a3aa87774ce00e9141058b59f4de4c8e | |
parent | 87ebfe1227ecc811a18d9b9c791e3e21da3f5eb2 (diff) | |
download | openttd-91eee793e1632c124c22ee46911e7de5fb3a2362.tar.xz |
Fix c3dbe836b4: also compile without ENABLE_NETWORK defined again
-rw-r--r-- | src/toolbar_gui.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/toolbar_gui.cpp b/src/toolbar_gui.cpp index ce0ce58f5..5567c5580 100644 --- a/src/toolbar_gui.cpp +++ b/src/toolbar_gui.cpp @@ -162,9 +162,11 @@ public: int lock_offset = (bottom - top - lock_size.height) / 2; DrawCompanyIcon(company, rtl ? right - this->icon_size.width - WD_FRAMERECT_RIGHT : left + WD_FRAMERECT_LEFT, top + icon_offset); +#ifdef ENABLE_NETWORK if (NetworkCompanyIsPassworded(company)) { DrawSprite(SPR_LOCK, PAL_NONE, rtl ? left + WD_FRAMERECT_LEFT : right - this->lock_size.width - WD_FRAMERECT_RIGHT, top + lock_offset); } +#endif SetDParam(0, company); SetDParam(1, company); |