(svn r20970) -Add: company change notification to remote admins (dihedral)

This commit is contained in:
rubidium
2010-10-17 17:37:45 +00:00
parent fe44944f32
commit ae20cb4f3d
8 changed files with 246 additions and 0 deletions

View File

@@ -534,6 +534,7 @@ static void CompanyCheckBankrupt(Company *c)
CompanyID c_index = c->index;
delete c;
AI::BroadcastNewEvent(new AIEventCompanyBankrupt(c_index));
CompanyAdminBankrupt(c_index);
}
}
@@ -1534,6 +1535,7 @@ CommandCost CmdBuyShareInCompany(TileIndex tile, DoCommandFlag flags, uint32 p1,
}
}
SetWindowDirty(WC_COMPANY, target_company);
CompanyAdminUpdate(c);
}
return cost;
}
@@ -1568,6 +1570,7 @@ CommandCost CmdSellShareInCompany(TileIndex tile, DoCommandFlag flags, uint32 p1
while (*b != _current_company) b++; // share owners is guaranteed to contain company
*b = COMPANY_SPECTATOR;
SetWindowDirty(WC_COMPANY, target_company);
CompanyAdminUpdate(c);
}
return CommandCost(EXPENSES_OTHER, cost);
}