diff options
author | tron <tron@openttd.org> | 2005-07-08 22:25:24 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-07-08 22:25:24 +0000 |
commit | 1b4a0897b6944910edaeb8f34769a092110c0a0c (patch) | |
tree | 7b435600d289220b369f3d759ca520553f411357 /disaster_cmd.c | |
parent | 83f72f696a3ce82eea4cfcbbbdbf35b0823492e3 (diff) | |
download | openttd-1b4a0897b6944910edaeb8f34769a092110c0a0c.tar.xz |
(svn r2535) Tabs
Diffstat (limited to 'disaster_cmd.c')
-rw-r--r-- | disaster_cmd.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/disaster_cmd.c b/disaster_cmd.c index 85b8b56dc..fc0ad67cc 100644 --- a/disaster_cmd.c +++ b/disaster_cmd.c @@ -262,7 +262,7 @@ static void DisasterTick_UFO(Vehicle *v) // fly around randomly int x = TileX(v->dest_tile) * 16; int y = TileY(v->dest_tile) * 16; - if (abs(x - v->x_pos) + abs(y - v->y_pos) >= 16) { + if (abs(x - v->x_pos) + abs(y - v->y_pos) >= 16) { v->direction = GetDirectionTowards(v, x, y); GetNewVehiclePos(v, &gp); SetDisasterVehiclePos(v, gp.x, gp.y, v->z_pos); @@ -331,8 +331,8 @@ static void DestructIndustry(Industry *i) { TileIndex tile; - for(tile=0; tile != MapSize(); tile++) { - if (IsTileType(tile, MP_INDUSTRY) && _map2[tile] == i->index) { + for (tile = 0; tile != MapSize(); tile++) { + if (IsTileType(tile, MP_INDUSTRY) && _map2[tile] == i->index) { _map_owner[tile] = 0; MarkTileDirtyByTile(tile); } @@ -563,7 +563,7 @@ static void DisasterTick_4(Vehicle *v) int x = TileX(v->dest_tile) * 16; int y = TileY(v->dest_tile) * 16; - if (abs(x - v->x_pos) + abs(y - v->y_pos) >= 16) { + if (abs(x - v->x_pos) + abs(y - v->y_pos) >= 16) { v->direction = GetDirectionTowards(v, x, y); GetNewVehiclePos(v, &gp); SetDisasterVehiclePos(v, gp.x, gp.y, v->z_pos); @@ -907,7 +907,7 @@ static void Disaster7_Init(void) do { FOR_ALL_INDUSTRIES(i) { - if (i->xy != 0 && i->type == IT_COAL_MINE && --index < 0) { + if (i->xy != 0 && i->type == IT_COAL_MINE && --index < 0) { SetDParam(0, i->town->index); AddNewsItem(STR_B005_COAL_MINE_SUBSIDENCE_LEAVES, |