diff options
author | tron <tron@openttd.org> | 2005-09-30 20:37:25 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-09-30 20:37:25 +0000 |
commit | ed8c9c91d66f593dc3fae5cef4469ded311f6d75 (patch) | |
tree | 1e61685bece04279bd25b3f79e645384c1d83405 /economy.c | |
parent | af5b74f0edfb02077f55d6c1ac6713d3aa18d753 (diff) | |
download | openttd-ed8c9c91d66f593dc3fae5cef4469ded311f6d75.tar.xz |
(svn r3001) s/Player*/const Player*/
s/byte/PlayerID/
s/int/PlayerID/
and related changes
Diffstat (limited to 'economy.c')
-rw-r--r-- | economy.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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 |