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

Function TownActionAdvertiseLarge

src/town_cmd.cpp:3440–3446  ·  view source on GitHub ↗

* Perform the "large 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

3438 * @return An empty cost.
3439 */
3440static CommandCost TownActionAdvertiseLarge(Town *t, DoCommandFlags flags)
3441{
3442 if (flags.Test(DoCommandFlag::Execute)) {
3443 ModifyStationRatingAround(t->xy, _current_company, 0xA0, 20);
3444 }
3445 return CommandCost();
3446}
3447
3448/**
3449 * Perform the "local road reconstruction" town action.

Callers

nothing calls this directly

Calls 3

CommandCostClass · 0.85
TestMethod · 0.80

Tested by

no test coverage detected