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

Function MenuClickGoal

src/toolbar_gui.cpp:642–646  ·  view source on GitHub ↗

* Handle click on the entry in the Goal menu * * @param index CompanyID to show story book for * @return #CBF_NONE */

Source from the content-addressed store, hash-verified

640 * @return #CBF_NONE
641 */
642static CallBackFunction MenuClickGoal(int index)
643{
644 ShowGoalsList(index == CTMN_SPECTATOR ? CompanyID::Invalid() : (CompanyID)index);
645 return CBF_NONE;
646}
647
648/* --- Graphs and League Table button menu --- */
649

Callers

nothing calls this directly

Calls 2

ShowGoalsListFunction · 0.85
InvalidFunction · 0.85

Tested by

no test coverage detected