@@ -773,25 +773,25 @@ static int GenRandomRoadBits(void)
uint b = GB(r, 8, 2);
if (a == b) b ^= 2;
return (1 << a) + (1 << b);
}
// Grow the town
// Returns true if a house was built, or no if the build failed.
bool GrowTown(Town *t)
{
TileIndex tile;
const TileIndexDiffC *ptr;
TileInfo ti;
byte old_player;
PlayerID old_player;
static const TileIndexDiffC _town_coord_mod[] = {
{-1, 0},
{ 1, 1},
{ 1, -1},
{-1, -1},
{ 0, 2},
{ 2, 0},
{ 0, -2},
{-2, 2},
@@ -1569,25 +1569,25 @@ static void TownActionRoadRebuild(Town *
p = GetPlayer(_current_player);
SetDParam(1, p->name_1);
SetDParam(2, p->name_2);
AddNewsItem(STR_2055_TRAFFIC_CHAOS_IN_ROAD_REBUILDING,
NEWS_FLAGS(NM_NORMAL, NF_TILE, NT_GENERAL, 0), t->xy, 0);
static bool DoBuildStatueOfCompany(TileIndex tile)
byte old;
PlayerID old;
int32 r;
FindLandscapeHeightByTile(&ti, tile);
if (ti.tileh != 0)
return false;
if (ti.type != MP_HOUSE && ti.type != MP_CLEAR && ti.type != MP_TREES)
old = _current_player;
_current_player = OWNER_NONE;