summaryrefslogtreecommitdiff
path: root/town_cmd.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-02-02 07:15:46 +0000
committertron <tron@openttd.org>2006-02-02 07:15:46 +0000
commitb844aa2db3f7ee77ffee09bdfb2fd9f2dc13b924 (patch)
tree986bf53fde84b3cd16b658ae7ff1a59b2d28e5ec /town_cmd.c
parent21fb5b5150672011d9bc57e227f6d6747a8938de (diff)
downloadopenttd-b844aa2db3f7ee77ffee09bdfb2fd9f2dc13b924.tar.xz
(svn r3520) Remove unused parameters from some functions
Diffstat (limited to 'town_cmd.c')
-rw-r--r--town_cmd.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/town_cmd.c b/town_cmd.c
index fdf1e6a41..4811651b6 100644
--- a/town_cmd.c
+++ b/town_cmd.c
@@ -1118,7 +1118,7 @@ bool GenerateTowns(void)
return true;
}
-static bool CheckBuildHouseMode(Town *t1, TileIndex tile, uint tileh, int mode)
+static bool CheckBuildHouseMode(TileIndex tile, uint tileh, int mode)
{
int b;
uint slope;
@@ -1159,7 +1159,7 @@ int GetTownRadiusGroup(const Town *t, TileIndex tile)
return smallest;
}
-static bool CheckFree2x2Area(Town *t1, TileIndex tile)
+static bool CheckFree2x2Area(TileIndex tile)
{
int i;
@@ -1248,24 +1248,24 @@ static void DoBuildTownHouse(Town *t, TileIndex tile)
if (_housetype_extra_flags[house] & 0x12 && slope) continue;
if (_housetype_extra_flags[house] & 0x10) {
- if (CheckFree2x2Area(t, tile) ||
- CheckFree2x2Area(t, (tile += TileDiffXY(-1, 0))) ||
- CheckFree2x2Area(t, (tile += TileDiffXY( 0, -1))) ||
- CheckFree2x2Area(t, (tile += TileDiffXY( 1, 0)))) {
+ if (CheckFree2x2Area(tile) ||
+ CheckFree2x2Area(tile += TileDiffXY(-1, 0)) ||
+ CheckFree2x2Area(tile += TileDiffXY( 0, -1)) ||
+ CheckFree2x2Area(tile += TileDiffXY( 1, 0))) {
break;
}
tile += TileDiffXY(0, 1);
} else if (_housetype_extra_flags[house] & 4) {
- if (CheckBuildHouseMode(t, tile + TileDiffXY(1, 0), slope, 0)) break;
+ if (CheckBuildHouseMode(tile + TileDiffXY(1, 0), slope, 0)) break;
- if (CheckBuildHouseMode(t, tile + TileDiffXY(-1, 0), slope, 1)) {
+ if (CheckBuildHouseMode(tile + TileDiffXY(-1, 0), slope, 1)) {
tile += TileDiffXY(-1, 0);
break;
}
} else if (_housetype_extra_flags[house] & 8) {
- if (CheckBuildHouseMode(t, tile + TileDiffXY(0, 1), slope, 2)) break;
+ if (CheckBuildHouseMode(tile + TileDiffXY(0, 1), slope, 2)) break;
- if (CheckBuildHouseMode(t, tile + TileDiffXY(0, -1), slope, 3)) {
+ if (CheckBuildHouseMode(tile + TileDiffXY(0, -1), slope, 3)) {
tile += TileDiffXY(0, -1);
break;
}
@@ -1886,7 +1886,7 @@ static const int _default_rating_settings [3][3] = {
{ 96, 384, 768}, // Hostile
};
-bool CheckforTownRating(TileIndex tile, uint32 flags, Town *t, byte type)
+bool CheckforTownRating(uint32 flags, Town *t, byte type)
{
int modemod;