diff options
author | tron <tron@openttd.org> | 2006-02-01 07:36:15 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2006-02-01 07:36:15 +0000 |
commit | 84fb96fe85e75b038b527471428189170021f8b7 (patch) | |
tree | a7d69d6390e8880d090f15560161694c3ce6126d /viewport.c | |
parent | 22dc05faf2219f6e3803f9cbff92249823bb11eb (diff) | |
download | openttd-84fb96fe85e75b038b527471428189170021f8b7.tar.xz |
(svn r3511) More whitespace ([FS#46] by Rubidium)
Diffstat (limited to 'viewport.c')
-rw-r--r-- | viewport.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/viewport.c b/viewport.c index acf158b58..7d88bb33a 100644 --- a/viewport.c +++ b/viewport.c @@ -571,7 +571,7 @@ void DebugMarkTile(TileIndex tile) { void DebugClearMarkedTiles() { uint size = MapSize(), i; - for(i=0; i!=size; i++) { + for (i = 0; i != size; i++) { if (_m[i].extra & 0x80) { _m[i].extra &= ~0x80; MarkTileDirtyByTile(i); @@ -598,7 +598,7 @@ static bool IsPartOfAutoLine(int px, int py) px -= _thd.selstart.x; py -= _thd.selstart.y; - switch(_thd.drawstyle) { + switch (_thd.drawstyle) { case HT_LINE | HT_DIR_X: return py == 0; // x direction case HT_LINE | HT_DIR_Y: return px == 0; // y direction case HT_LINE | HT_DIR_HU: return px == -py || px == -py - 16; // horizontal upper @@ -1954,7 +1954,7 @@ static byte Check2x1AutoRail(int mode) int fxmy = _tile_fract_coords.x - _tile_fract_coords.y; int sxmy = (_thd.selend.x & 0xF) - (_thd.selend.y & 0xF); - switch(mode) { + switch (mode) { case 0: // end piece is lower right if (fxpy >= 20 && sxpy <= 12) { /*SwapSelection(); DoRailroadTrack(0); */return 3; } if (fxmy < -3 && sxmy > 3) {/* DoRailroadTrack(0); */return 5; } |