Fix c3dbe836b4: also compile without ENABLE_NETWORK defined again

This commit is contained in:
Patric Stout 2019-02-23 22:03:48 +01:00
parent 87ebfe1227
commit 91eee793e1
1 changed files with 2 additions and 0 deletions

View File

@ -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);