Fix new station joining

This commit is contained in:
Pavel Stupnikov
2022-12-20 19:46:24 +04:00
parent 4e047eec9b
commit f5f85a47ec
20 changed files with 3408 additions and 700 deletions

View File

@@ -920,10 +920,10 @@ static void DoRegularFunding(Town *t)
} else if (_tick_counter - t->last_funding < TOWN_GROWTH_TICKS) return;
citymania::cmd::DoTownAction(t->index, HK_FUND)
.WithTile(t->xy)
.SetAuto()
.AsCompany(_local_company)
.Post();
.with_tile(t->xy)
.set_auto()
.as_company(_local_company)
.post();
t->last_funding = _tick_counter;
}
@@ -957,10 +957,10 @@ static void DoRegularAdvertising(Town *t) {
t->last_advertisement = _tick_counter;
citymania::cmd::DoTownAction(t->index, HK_LADVERT)
.WithTile(t->xy)
.SetAuto()
.AsCompany(_local_company)
.Post();
.with_tile(t->xy)
.set_auto()
.as_company(_local_company)
.post();
}
static void TownTickHandler(Town *t)