1
0
Fork 0

comment fix

pull/13916/head
ilmikko 2025-03-29 19:14:28 +01:00
parent 8bbd817307
commit 5b2e4bc988
1 changed files with 2 additions and 1 deletions

View File

@ -382,7 +382,8 @@ public:
NWidgetViewport *nvp = this->GetWidget<NWidgetViewport>(WID_TV_VIEWPORT); NWidgetViewport *nvp = this->GetWidget<NWidgetViewport>(WID_TV_VIEWPORT);
nvp->InitializeViewport(this, this->town->xy, ScaleZoomGUI(ZOOM_LVL_TOWN)); nvp->InitializeViewport(this, this->town->xy, ScaleZoomGUI(ZOOM_LVL_TOWN));
/* disable renaming town in network games if you are not the server */ /* disable renaming town in network games if you are not the server, unless
* town renaming is explicitly allowed */
bool renaming_disabled = _networking && !_network_server; bool renaming_disabled = _networking && !_network_server;
if (_settings_game.economy.town_renaming_allowed) { if (_settings_game.economy.town_renaming_allowed) {
renaming_disabled = false; renaming_disabled = false;