Adjust desync log format and add company events to log

This commit is contained in:
Jonathan G Rennison
2019-05-20 19:38:47 +01:00
parent 6db59fee05
commit 002f5ca70e
5 changed files with 19 additions and 7 deletions

View File

@@ -2205,6 +2205,8 @@ static void DoAcquireCompany(Company *c)
{
CompanyID ci = c->index;
DEBUG(desync, 1, "buy_company: date{%08x; %02x; %02x}, buyer: %u, bought: %u", _date, _date_fract, _tick_skip_counter, (uint) _current_company, (uint) ci);
CompanyNewsInformation *cni = MallocT<CompanyNewsInformation>(1);
cni->FillData(c, Company::Get(_current_company));