* Add side of tile to signal update buffer * * @param tile tile where we start * @param side side of tile * @param owner owner whose signals we will update */
| 619 | * @param owner owner whose signals we will update |
| 620 | */ |
| 621 | void AddSideToSignalBuffer(TileIndex tile, DiagDirection side, Owner owner) |
| 622 | { |
| 623 | /* do not allow signal updates for two companies in one run */ |
| 624 | assert(_globset.IsEmpty() || owner == _last_owner); |
| 625 | |
| 626 | _last_owner = owner; |
| 627 | |
| 628 | _globset.Add(tile, side); |
| 629 | |
| 630 | if (_globset.Items() >= SIG_GLOB_UPDATE) { |
| 631 | /* too many items, force update */ |
| 632 | UpdateSignalsInBuffer(_last_owner); |
| 633 | _last_owner = INVALID_OWNER; |
| 634 | } |
| 635 | } |
| 636 | |
| 637 | /** |
| 638 | * Update signals, starting at one side of a tile |
no test coverage detected