Fix tile command argument compile errors

This commit is contained in:
dP
2023-04-11 01:00:28 +04:00
parent e97cd95660
commit fa2fa80931
12 changed files with 411 additions and 458 deletions
+2 -4
View File
@@ -919,8 +919,7 @@ static void DoRegularFunding(Town *t)
if (UINT32_MAX - t->last_funding + _tick_counter < TOWN_GROWTH_TICKS) return;
} else if (_tick_counter - t->last_funding < TOWN_GROWTH_TICKS) return;
citymania::cmd::DoTownAction(t->index, HK_FUND)
.with_tile(t->xy)
citymania::cmd::DoTownAction(t->xy, t->index, HK_FUND)
.no_estimate()
.as_company(_local_company)
.post();
@@ -957,8 +956,7 @@ static void DoRegularAdvertising(Town *t) {
t->last_advertisement = _tick_counter;
auto prev_rating = t->ad_ref_goods_entry->rating;
citymania::cmd::DoTownAction(t->index, HK_LADVERT)
.with_tile(t->xy)
citymania::cmd::DoTownAction(t->xy, t->index, HK_LADVERT)
.no_estimate()
.as_company(_local_company)
.with_callback([=] (bool res) -> bool {