summaryrefslogtreecommitdiff
path: root/player.h
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2004-09-11 09:40:19 +0000
committertruelight <truelight@openttd.org>2004-09-11 09:40:19 +0000
commit4ccd84f94b844388d4fab8413bdf77e5580526fe (patch)
treed1d00d701e79fadb80b9d6271729f74047eba49d /player.h
parentddeae85be4a0ef6e9e4fd49bd3e0aee0d76831d9 (diff)
downloadopenttd-4ccd84f94b844388d4fab8413bdf77e5580526fe.tar.xz
(svn r201) -Fix: [1025836] Company values bigger dan int32 were put to negative
-Fix: [1025836] Long bridges had negative value -Fix: Typo in endian_check.c (Zr40)
Diffstat (limited to 'player.h')
-rw-r--r--player.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/player.h b/player.h
index 0d46e0627..4c0f198c3 100644
--- a/player.h
+++ b/player.h
@@ -8,7 +8,7 @@ typedef struct PlayerEconomyEntry {
int32 expenses;
int32 delivered_cargo;
int32 performance_history; // player score (scale 0-1000)
- int32 company_value;
+ int64 company_value;
} PlayerEconomyEntry;
typedef struct AiBuildRec {
@@ -188,7 +188,7 @@ typedef struct Player {
void ChangeOwnershipOfPlayerItems(byte old_player, byte new_player);
void GetNameOfOwner(byte owner, uint tile);
-uint32 CalculateCompanyValue(Player *p);
+int64 CalculateCompanyValue(Player *p);
void InvalidatePlayerWindows(Player *p);
void AiDoGameLoop(Player *p);
void UpdatePlayerMoney32(Player *p);