diff options
author | celestar <celestar@openttd.org> | 2006-04-03 09:07:21 +0000 |
---|---|---|
committer | celestar <celestar@openttd.org> | 2006-04-03 09:07:21 +0000 |
commit | cc87f682b9cd9c25ee58cec1b63792e4ef786aa9 (patch) | |
tree | e106242c0ac31fc61254791e0f6fcfe95db2baad /window.c | |
parent | 3aa1e38be6e0a3c01346fe4db1bb92b148d0f2a9 (diff) | |
download | openttd-cc87f682b9cd9c25ee58cec1b63792e4ef786aa9.tar.xz |
(svn r4249) -Codechange: Replace more occurences of 16 by TILE_SIZE and of 8 by TILE_HEIGHT. Reverted one change from the previous commit because it was faulty
Diffstat (limited to 'window.c')
-rw-r--r-- | window.c | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -1200,12 +1200,12 @@ stop_capt:; y += (dy >> 1) << 4; if (dy & 1) { - x += 16; + x += TILE_SIZE; sub += 2; if (sub > 3) { sub -= 4; - x -= 16; - y += 16; + x -= TILE_SIZE; + y += TILE_SIZE; } } @@ -1217,16 +1217,16 @@ stop_capt:; x = -hvx; sub = 0; } - if (x > (int)MapMaxX() * 16 - hvx) { - x = MapMaxX() * 16 - hvx; + if (x > (int)MapMaxX() * TILE_SIZE - hvx) { + x = MapMaxX() * TILE_SIZE - hvx; sub = 0; } if (y < -hvy) { y = -hvy; sub = 0; } - if (y > (int)MapMaxY() * 16 - hvy) { - y = MapMaxY() * 16 - hvy; + if (y > (int)MapMaxY() * TILE_SIZE - hvy) { + y = MapMaxY() * TILE_SIZE - hvy; sub = 0; } |