(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)
This commit is contained in:
truelight
2004-09-11 09:40:19 +00:00
parent ddeae85be4
commit 4ccd84f94b
7 changed files with 29 additions and 27 deletions

View File

@@ -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);