summaryrefslogtreecommitdiff
path: root/water_cmd.c
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2004-09-25 17:37:32 +0000
committertruelight <truelight@openttd.org>2004-09-25 17:37:32 +0000
commit3dc8dcf3123c056f6ebd8fafa0640ef1866ea53e (patch)
tree64e8595cdc93594fe0de037151cd3ba2d3998674 /water_cmd.c
parent75a54521e82f0891633c680c398cb58143204b7f (diff)
downloadopenttd-3dc8dcf3123c056f6ebd8fafa0640ef1866ea53e.tar.xz
(svn r320) -Fix: some last _current_player fixes
Diffstat (limited to 'water_cmd.c')
-rw-r--r--water_cmd.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/water_cmd.c b/water_cmd.c
index 8aad805ae..1ac3cba18 100644
--- a/water_cmd.c
+++ b/water_cmd.c
@@ -583,6 +583,9 @@ void TileLoop_Water(uint tile)
for(i=0; i!=4; i++)
TileLoopWaterHelper(tile, _tile_loop_offs_array[i]);
}
+ // _current_player can be changed by TileLoopWaterHelper.. reset it back
+ // here
+ _current_player = OWNER_NONE;
// edges
if ( GET_TILE_X(tile)==0 && IS_INT_INSIDE(GET_TILE_Y(tile),1,TILES_Y-3+1)) //NE