summaryrefslogtreecommitdiff
path: root/openttd.c
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2006-08-22 14:38:37 +0000
committerrubidium <rubidium@openttd.org>2006-08-22 14:38:37 +0000
commit480af9c9171badb7db906d2cc05856f4c2d87b73 (patch)
tree2a3621a92a3d30384ea51e0898d08f035a559915 /openttd.c
parent5f4dbbd52264b986efc248a6ccb02dbde4ca6c0e (diff)
downloadopenttd-480af9c9171badb7db906d2cc05856f4c2d87b73.tar.xz
(svn r6045) -Cleanup: align all table-like structures using spaces, i.e. whitespace fixes only except for a few comments to make them uniform for the whole enum/struct.
Diffstat (limited to 'openttd.c')
-rw-r--r--openttd.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/openttd.c b/openttd.c
index bfae908e3..7280cdae4 100644
--- a/openttd.c
+++ b/openttd.c
@@ -909,22 +909,22 @@ static void ScrollMainViewport(int x, int y)
}
static const int8 scrollamt[16][2] = {
- { 0, 0},
- {-2, 0}, // 1:left
- { 0,-2}, // 2:up
- {-2,-1}, // 3:left + up
- { 2, 0}, // 4:right
- { 0, 0}, // 5:left + right
- { 2,-1}, // 6:right + up
- { 0,-2}, // 7:left + right + up = up
- { 0 ,2}, // 8:down
- {-2 ,1}, // 9:down+left
- { 0, 0}, // 10:impossible
- {-2, 0}, // 11:left + up + down = left
- { 2, 1}, // 12:down+right
- { 0, 2}, // 13:left + right + down = down
- { 0,-2}, // 14:left + right + up = up
- { 0, 0}, // 15:impossible
+ { 0, 0},
+ {-2, 0}, // 1 : left
+ { 0, -2}, // 2 : up
+ {-2, -1}, // 3 : left + up
+ { 2, 0}, // 4 : right
+ { 0, 0}, // 5 : left + right
+ { 2, -1}, // 6 : right + up
+ { 0, -2}, // 7 : left + right + up = up
+ { 0 ,2}, // 8 : down
+ {-2 ,1}, // 9 : down+left
+ { 0, 0}, // 10 : impossible
+ {-2, 0}, // 11 : left + up + down = left
+ { 2, 1}, // 12 : down+right
+ { 0, 2}, // 13 : left + right + down = down
+ { 0, -2}, // 14 : left + right + up = up
+ { 0, 0}, // 15 : impossible
};
static void HandleKeyScrolling(void)