do not do estimate in regular fund/adv if shift is pressed (fixes #22)

This commit is contained in:
Pavel Stupnikov
2015-04-17 17:05:47 +03:00
parent c6dc68b0c6
commit 9d1d5833d7
3 changed files with 14 additions and 10 deletions

View File

@@ -861,7 +861,7 @@ static void DoRegularFunding(Town *t)
CompanyByte old = _current_company;
_current_company = _local_company;
DoCommandP(t->xy, t->index, HK_FUND, CMD_DO_TOWN_ACTION);
DoCommandP(t->xy, t->index, HK_FUND, CMD_DO_TOWN_ACTION | CMD_NO_ESTIMATE);
_current_company = old;
}
}
@@ -892,7 +892,7 @@ static void DoRegularAdvertising(Town *t) {
CompanyByte old = _current_company;
_current_company = _local_company;
DoCommandP(t->xy, t->index, HK_LADVERT, CMD_DO_TOWN_ACTION);
DoCommandP(t->xy, t->index, HK_LADVERT, CMD_DO_TOWN_ACTION | CMD_NO_ESTIMATE);
_current_company = old;
}