diff options
author | rubidium <rubidium@openttd.org> | 2007-06-18 21:44:47 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-06-18 21:44:47 +0000 |
commit | 23727da96f66d7df800cc5aa70d05abce8002d79 (patch) | |
tree | 56cef93f015d710536a1801fe14c3095d290a172 /src/player.h | |
parent | 7dda2d93da840519f1388d0191a00362ff97feb6 (diff) | |
download | openttd-23727da96f66d7df800cc5aa70d05abce8002d79.tar.xz |
(svn r10208) -Codechange: replace int32 with Money where appropriate.
Diffstat (limited to 'src/player.h')
-rw-r--r-- | src/player.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/player.h b/src/player.h index ce07ba204..cf25473c6 100644 --- a/src/player.h +++ b/src/player.h @@ -12,8 +12,8 @@ #include "livery.h" struct PlayerEconomyEntry { - int32 income; - int32 expenses; + Money income; + Money expenses; int32 delivered_cargo; int32 performance_history; ///< player score (scale 0-1000) int64 company_value; @@ -166,8 +166,8 @@ struct Player { PlayerFace face; - int32 current_loan; int64 player_money; + Money current_loan; byte player_color; Livery livery[LS_END]; @@ -190,7 +190,7 @@ struct Player { byte quarters_of_bankrupcy; byte bankrupt_asked; ///< which players were asked about buying it? int16 bankrupt_timeout; - int32 bankrupt_value; + Money bankrupt_value; bool is_active; bool is_ai; @@ -212,7 +212,7 @@ uint16 GetDrawStringPlayerColor(PlayerID player); void ChangeOwnershipOfPlayerItems(PlayerID old_player, PlayerID new_player); void GetNameOfOwner(Owner owner, TileIndex tile); -int64 CalculateCompanyValue(const Player* p); +Money CalculateCompanyValue(const Player* p); void InvalidatePlayerWindows(const Player* p); void SetLocalPlayer(PlayerID new_player); #define FOR_ALL_PLAYERS(p) for (p = _players; p != endof(_players); p++) |