File diff r5586:c50e3258a19f → r5587:034e5e185dc2
src/main_gui.cpp
Show inline comments
 
@@ -212,27 +212,27 @@ static void MenuClickSubsidies(int index
 
{
 
	ShowSubsidiesList();
 
}
 

	
 
static void MenuClickStations(int index)
 
{
 
	ShowPlayerStations(index);
 
	ShowPlayerStations((PlayerID)index);
 
}
 

	
 
static void MenuClickFinances(int index)
 
{
 
	ShowPlayerFinances(index);
 
	ShowPlayerFinances((PlayerID)index);
 
}
 

	
 
static void MenuClickCompany(int index)
 
{
 
	if (_networking && index == 0) {
 
		ShowClientList();
 
	} else {
 
		if (_networking) index--;
 
		ShowPlayerCompany(index);
 
		ShowPlayerCompany((PlayerID)index);
 
	}
 
}
 

	
 
static void MenuClickGraphs(int index)
 
{
 
	switch (index) {
 
@@ -260,33 +260,33 @@ static void MenuClickIndustry(int index)
 
		case 1: ShowBuildIndustryWindow(); break;
 
	}
 
}
 

	
 
static void MenuClickShowTrains(int index)
 
{
 
	ShowVehicleListWindow(index, INVALID_STATION, VEH_Train);
 
	ShowVehicleListWindow((PlayerID)index, INVALID_STATION, VEH_Train);
 
}
 

	
 
static void MenuClickShowRoad(int index)
 
{
 
	ShowVehicleListWindow(index, INVALID_STATION, VEH_Road);
 
	ShowVehicleListWindow((PlayerID)index, INVALID_STATION, VEH_Road);
 
}
 

	
 
static void MenuClickShowShips(int index)
 
{
 
	ShowVehicleListWindow(index, INVALID_STATION, VEH_Ship);
 
	ShowVehicleListWindow((PlayerID)index, INVALID_STATION, VEH_Ship);
 
}
 

	
 
static void MenuClickShowAir(int index)
 
{
 
	ShowVehicleListWindow(index, INVALID_STATION, VEH_Aircraft);
 
	ShowVehicleListWindow((PlayerID)index, INVALID_STATION, VEH_Aircraft);
 
}
 

	
 
static void MenuClickBuildRail(int index)
 
{
 
	_last_built_railtype = index;
 
	_last_built_railtype = (RailType)index;
 
	ShowBuildRailToolbar(_last_built_railtype, -1);
 
}
 

	
 
static void MenuClickBuildRoad(int index)
 
{
 
	ShowBuildRoadToolbar();
 
@@ -1561,13 +1561,13 @@ static bool AnyTownExists(void)
 

	
 
	FOR_ALL_TOWNS(t) return true;
 

	
 
	return false;
 
}
 

	
 
extern Industry *CreateNewIndustry(TileIndex tile, int type);
 
extern Industry *CreateNewIndustry(TileIndex tile, IndustryType type);
 

	
 
/**
 
 * Search callback function for TryBuildIndustry
 
 * @param tile to test
 
 * @param data that is passed by the caller.  In this case, the type of industry been tested
 
 * @result of the operation
 
@@ -2280,13 +2280,13 @@ static void MainWindowWndProc(Window *w,
 
				*(byte*)0 = 0;
 
				break;
 

	
 
			case '1' | WKC_ALT: /* Gimme money */
 
				/* Server can not cheat in advertise mode either! */
 
				if (!_networking || !_network_server || !_network_advertise)
 
					DoCommandP(0, -10000000, 0, NULL, CMD_MONEY_CHEAT);
 
					DoCommandP(0, 10000000, 0, NULL, CMD_MONEY_CHEAT);
 
				break;
 

	
 
			case '2' | WKC_ALT: /* Update the coordinates of all station signs */
 
				UpdateAllStationVirtCoord();
 
				break;
 
#endif
 
@@ -2427,10 +2427,10 @@ void GameSizeChanged(void)
 
	MarkWholeScreenDirty();
 
}
 

	
 
void InitializeMainGui(void)
 
{
 
	/* Clean old GUI values */
 
	_last_built_railtype = 0;
 
	_last_built_railtype = RAILTYPE_RAIL;
 
}