Ejemplo n.º 1
0
static base_t* CreateBase (const char* name, const vec2_t pos, bool fillBase = false)
{
	const campaign_t* campaign = GetCampaign();

	RS_InitTree(campaign, false);
	E_InitialEmployees(campaign);
	base_t* base = B_Build(campaign, pos, name, fillBase);

	/* First base */
	if (ccs.campaignStats.basesBuilt == 1)
		B_SetUpFirstBase(campaign, base);

	return base;
}
Ejemplo n.º 2
0
static base_t* CreateBase (const char *name, const vec2_t pos)
{
	const campaign_t *campaign = GetCampaign();
	base_t *base = B_GetFirstUnfoundedBase();

	CU_ASSERT_PTR_NOT_NULL_FATAL(campaign);
	CU_ASSERT_PTR_NOT_NULL_FATAL(base);

	CU_ASSERT_FALSE(base->founded);

	RS_InitTree(campaign, qfalse);
	B_SetUpBase(campaign, base, pos, name);

	return base;
}