diff options
author | truelight <truelight@openttd.org> | 2004-09-25 17:37:32 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2004-09-25 17:37:32 +0000 |
commit | 3dc8dcf3123c056f6ebd8fafa0640ef1866ea53e (patch) | |
tree | 64e8595cdc93594fe0de037151cd3ba2d3998674 /industry_cmd.c | |
parent | 75a54521e82f0891633c680c398cb58143204b7f (diff) | |
download | openttd-3dc8dcf3123c056f6ebd8fafa0640ef1866ea53e.tar.xz |
(svn r320) -Fix: some last _current_player fixes
Diffstat (limited to 'industry_cmd.c')
-rw-r--r-- | industry_cmd.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/industry_cmd.c b/industry_cmd.c index 414a24e27..6fe5e0c73 100644 --- a/industry_cmd.c +++ b/industry_cmd.c @@ -999,6 +999,7 @@ static void ChopLumberMillTrees(Industry *i) do { tile = TILE_MASK(tile); if (IS_TILETYPE(tile, MP_TREES)) { + uint old_player = _current_player; /* found a tree */ _current_player = OWNER_NONE; @@ -1010,6 +1011,8 @@ static void ChopLumberMillTrees(Industry *i) SetMapExtraBits(tile, 0); i->cargo_waiting[0] = min(0xffff, i->cargo_waiting[0] + 45); + + _current_player = old_player; return; } tile += _chop_dir[dir]; |