(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:
4
player.h
4
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);
|
||||
|
||||
Reference in New Issue
Block a user