File diff r18763:938cba34d55a → r18764:f6e8611401f3
src/town_cmd.cpp
Show inline comments
 
@@ -44,12 +44,13 @@
 
#include "core/random_func.hpp"
 
#include "core/backup_type.hpp"
 
#include "depot_base.h"
 
#include "object_map.h"
 
#include "object_base.h"
 
#include "ai/ai.hpp"
 
#include "game/game.hpp"
 

	
 
#include "table/strings.h"
 
#include "table/town_land.h"
 

	
 
TownID _new_town_id;
 
uint32 _town_cargoes_accepted; ///< Bitmap of all cargoes accepted by houses.
 
@@ -1695,12 +1696,13 @@ CommandCost CmdFoundTown(TileIndex tile,
 
			char *cn = strdup(company_name);
 
			SetDParamStr(0, cn);
 
			SetDParam(1, t->index);
 

	
 
			AddNewsItem(STR_NEWS_NEW_TOWN, NS_INDUSTRY_OPEN, NR_TILE, tile, NR_NONE, UINT32_MAX, cn);
 
			AI::BroadcastNewEvent(new ScriptEventTownFounded(t->index));
 
			Game::NewEvent(new ScriptEventTownFounded(t->index));
 
		}
 
	}
 
	return cost;
 
}
 

	
 
/**