(svn r320) -Fix: some last _current_player fixes

This commit is contained in:
truelight
2004-09-25 17:37:32 +00:00
parent 75a54521e8
commit 3dc8dcf312
3 changed files with 8 additions and 0 deletions

View File

@@ -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];