src/town_gui.cpp
changeset 11161 7d0fac8f14cd
parent 11125 856f16065654
equal deleted inserted replaced
11160:4b963391b435 11161:7d0fac8f14cd
   779 	_scen_edit_town_gen_widgets,
   779 	_scen_edit_town_gen_widgets,
   780 };
   780 };
   781 
   781 
   782 void ShowBuildTownWindow()
   782 void ShowBuildTownWindow()
   783 {
   783 {
   784 	if (_game_mode != GM_EDITOR && !IsValidPlayer(_current_player)) return;
   784 	if (_game_mode != GM_EDITOR && !IsValidPlayerID(_current_player)) return;
   785 	AllocateWindowDescFront<ScenarioEditorTownGenerationWindow>(&_scen_edit_town_gen_desc, 0);
   785 	AllocateWindowDescFront<ScenarioEditorTownGenerationWindow>(&_scen_edit_town_gen_desc, 0);
   786 }
   786 }
   787 
   787