src/town_cmd.cpp
changeset 9658 f5c4d3c04b5d
parent 9652 0405e98d8e96
child 9659 187142ff9b6c
equal deleted inserted replaced
9657:e7e747f71cf6 9658:f5c4d3c04b5d
  2146 
  2146 
  2147 static void TownActionRoadRebuild(Town *t)
  2147 static void TownActionRoadRebuild(Town *t)
  2148 {
  2148 {
  2149 	t->road_build_months = 6;
  2149 	t->road_build_months = 6;
  2150 
  2150 
       
  2151 	char *company_name = MallocT<char>(64);
       
  2152 	SetDParam(0, _current_player);
       
  2153 	GetString(company_name, STR_COMPANY_NAME, company_name + 64);
       
  2154 
  2151 	SetDParam(0, t->index);
  2155 	SetDParam(0, t->index);
  2152 	SetDParam(1, _current_player);
  2156 	SetDParamStr(1, company_name);
  2153 
  2157 
  2154 	AddNewsItem(STR_2055_TRAFFIC_CHAOS_IN_ROAD_REBUILDING,
  2158 	AddNewsItem(STR_2055_TRAFFIC_CHAOS_IN_ROAD_REBUILDING,
  2155 		NS_GENERAL, t->xy, 0);
  2159 		NS_GENERAL, t->xy, 0, company_name);
  2156 }
  2160 }
  2157 
  2161 
  2158 static bool DoBuildStatueOfCompany(TileIndex tile, TownID town_id)
  2162 static bool DoBuildStatueOfCompany(TileIndex tile, TownID town_id)
  2159 {
  2163 {
  2160 	/* Statues can be build on slopes, just like houses. Only the steep slopes is a no go. */
  2164 	/* Statues can be build on slopes, just like houses. Only the steep slopes is a no go. */