Changeset - r23356:24886df00375
[Not reviewed]
master
0 1 0
Patric Stout - 5 years ago 2019-02-23 21:03:48
truebrain@openttd.org
Fix c3dbe836b4: also compile without ENABLE_NETWORK defined again
1 file changed with 2 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/toolbar_gui.cpp
Show inline comments
 
@@ -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);
0 comments (0 inline, 0 general)