(svn r3001) s/Player*/const Player*/

s/byte/PlayerID/
s/int/PlayerID/
and related changes
This commit is contained in:
tron
2005-09-30 20:37:25 +00:00
parent af5b74f0ed
commit ed8c9c91d6
12 changed files with 41 additions and 39 deletions

View File

@@ -72,8 +72,9 @@ void UpdatePlayerHouse(Player *p, uint score)
MarkTileDirtyByTile(tile + TileDiffXY(1, 1));
}
int64 CalculateCompanyValue(Player *p) {
byte owner = p->index;
int64 CalculateCompanyValue(const Player *p)
{
PlayerID owner = p->index;
int64 value;
{
@@ -394,7 +395,7 @@ extern void DeletePlayerWindows(int pi);
static void PlayersCheckBankrupt(Player *p)
{
int owner;
PlayerID owner;
int64 val;
// If the player has money again, it does not go bankrupt