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

Function TownActionAdvertiseSmall

src/town_cmd.cpp:3412–3418  ·  view source on GitHub ↗

* Perform the "small advertising campaign" town action. * @param t The town to advertise in. * @param flags Type of operation. * @return An empty cost. */

Source from the content-addressed store, hash-verified

3410 * @return An empty cost.
3411 */
3412static CommandCost TownActionAdvertiseSmall(Town *t, DoCommandFlags flags)
3413{
3414 if (flags.Test(DoCommandFlag::Execute)) {
3415 ModifyStationRatingAround(t->xy, _current_company, 0x40, 10);
3416 }
3417 return CommandCost();
3418}
3419
3420/**
3421 * Perform the "medium advertising campaign" town action.

Callers

nothing calls this directly

Calls 3

CommandCostClass · 0.85
TestMethod · 0.80

Tested by

no test coverage detected