summaryrefslogtreecommitdiff
path: root/economy.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-09-30 20:37:25 +0000
committertron <tron@openttd.org>2005-09-30 20:37:25 +0000
commited8c9c91d66f593dc3fae5cef4469ded311f6d75 (patch)
tree1e61685bece04279bd25b3f79e645384c1d83405 /economy.c
parentaf5b74f0edfb02077f55d6c1ac6713d3aa18d753 (diff)
downloadopenttd-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.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/economy.c b/economy.c
index 8d9366039..10676e417 100644
--- a/economy.c
+++ b/economy.c
@@ -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