(svn r11864) -Codechange: pass owner whose signals we will update instead of complex detection later

This commit is contained in:
smatz
2008-01-15 15:00:01 +00:00
parent c954ce1b33
commit 81cad58c68
9 changed files with 72 additions and 56 deletions

View File

@@ -440,7 +440,7 @@ void ChangeOwnershipOfPlayerItems(PlayerID old_player, PlayerID new_player)
TrackBits tracks = GetTrackBits(tile);
do { // there may be two tracks with signals for TRACK_BIT_HORZ and TRACK_BIT_VERT
Track track = RemoveFirstTrack(&tracks);
if (HasSignalOnTrack(tile, track)) SetSignalsOnBothDir(tile, track);
if (HasSignalOnTrack(tile, track)) SetSignalsOnBothDir(tile, track, new_player);
} while (tracks != TRACK_BIT_NONE);
}
} while (++tile != MapSize());