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

Function TownActionAdvertiseMedium

src/town_cmd.cpp:3426–3432  ·  view source on GitHub ↗

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

3424 * @return An empty cost.
3425 */
3426static CommandCost TownActionAdvertiseMedium(Town *t, DoCommandFlags flags)
3427{
3428 if (flags.Test(DoCommandFlag::Execute)) {
3429 ModifyStationRatingAround(t->xy, _current_company, 0x70, 15);
3430 }
3431 return CommandCost();
3432}
3433
3434/**
3435 * Perform the "large advertising campaign" town action.

Callers

nothing calls this directly

Calls 3

CommandCostClass · 0.85
TestMethod · 0.80

Tested by

no test coverage detected