MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / AfterLoad_LinkGraphPauseControl

Function AfterLoad_LinkGraphPauseControl

src/linkgraph/linkgraphschedule.cpp:191–196  ·  view source on GitHub ↗

* Pause the game on load if we would do a join with the next link graph job, * but it is still running, and it would not be caught by a call to * StateGameLoop_LinkGraphPauseControl(). */

Source from the content-addressed store, hash-verified

189 * StateGameLoop_LinkGraphPauseControl().
190 */
191void AfterLoad_LinkGraphPauseControl()
192{
193 if (LinkGraphSchedule::instance.IsJoinWithUnfinishedJobDue()) {
194 _pause_mode.Set(PauseMode::LinkGraph);
195 }
196}
197
198/**
199 * Spawn or join a link graph job or compress a link graph if any link graph is

Callers 1

AfterLoadLinkGraphsFunction · 0.85

Calls 2

SetMethod · 0.45

Tested by

no test coverage detected