Add "special events" log. Add console command, include in crash logs.
This commit is contained in:
@@ -590,6 +590,12 @@ void ChangeOwnershipOfCompanyItems(Owner old_owner, Owner new_owner)
|
||||
|
||||
cur_company.Restore();
|
||||
|
||||
if (new_owner != INVALID_OWNER) {
|
||||
AppendSpecialEventsLogEntry(stdstr_fmt("Company merge: old: %u, new %u", old_owner, new_owner));
|
||||
} else {
|
||||
AppendSpecialEventsLogEntry(stdstr_fmt("Company deletion: old: %u", old_owner));
|
||||
}
|
||||
|
||||
RegisterGameEvents(new_owner != INVALID_OWNER ? GEF_COMPANY_MERGE : GEF_COMPANY_DELETE);
|
||||
|
||||
MarkWholeScreenDirty();
|
||||
|
Reference in New Issue
Block a user