diff options
author | dominik <dominik@openttd.org> | 2004-08-13 19:52:45 +0000 |
---|---|---|
committer | dominik <dominik@openttd.org> | 2004-08-13 19:52:45 +0000 |
commit | 7af3360c5aa6c5b9cfdad97351bcc7644b4ab5c1 (patch) | |
tree | 77de48e3da538eaaeb25646d50e1c7b2575105e6 /water_cmd.c | |
parent | 3067b9ac635c69fc93692fcddda91bdb48d3414a (diff) | |
download | openttd-7af3360c5aa6c5b9cfdad97351bcc7644b4ab5c1.tar.xz |
(svn r44) Fix: Coast line near edge of map and near oilrigs (Dribbel)
Diffstat (limited to 'water_cmd.c')
-rw-r--r-- | water_cmd.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/water_cmd.c b/water_cmd.c index 2a1ccc111..ef98a0a44 100644 --- a/water_cmd.c +++ b/water_cmd.c @@ -528,6 +528,20 @@ void TileLoop_Water(uint tile) for(i=0; i!=4; i++) TileLoopWaterHelper(tile, _tile_loop_offs_array[i]); } + + // edges + if ( GET_TILE_X(tile)==0 && IS_INT_INSIDE(GET_TILE_Y(tile),1,TILES_Y-3+1)) //NE + TileLoopWaterHelper(tile, _tile_loop_offs_array[2]); + + if ( GET_TILE_X(tile)==(TILES_X-2) && IS_INT_INSIDE(GET_TILE_Y(tile),1,TILES_Y-3+1)) //SW + TileLoopWaterHelper(tile, _tile_loop_offs_array[0]); + + if ( GET_TILE_Y(tile)==0 && IS_INT_INSIDE(GET_TILE_X(tile),1,TILES_X-3+1)) //NW + TileLoopWaterHelper(tile, _tile_loop_offs_array[1]); + + if ( GET_TILE_Y(tile)==(TILES_Y-2) && IS_INT_INSIDE(GET_TILE_X(tile),1,TILES_X-3+1)) //SE + TileLoopWaterHelper(tile, _tile_loop_offs_array[3]); + } |