* Perform some operations before adding data into Todo set * The new and reverse direction is removed from Global set, because we are sure * it doesn't need to be checked again * Also, remove reverse direction from Todo set * This is the 'core' part so the graph searching won't enter any tile twice * * @param t1 tile we are entering * @param d1 direction (tile side) we are entering * @para
| 235 | * @return false iff the Todo buffer would be overrun |
| 236 | */ |
| 237 | static inline bool MaybeAddToTodoSet(TileIndex t1, DiagDirection d1, TileIndex t2, DiagDirection d2) |
| 238 | { |
| 239 | if (!CheckAddToTodoSet(t1, d1, t2, d2)) return true; |
| 240 | |
| 241 | return _tbdset.Add(t1, d1); |
| 242 | } |
| 243 | |
| 244 | |
| 245 | /** Current signal block state flags */ |
no test coverage detected