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 | 2ee73b50b8dae28f53acabcb5b7c0e3f02139db2 (patch) | |
tree | 56cef93f015d710536a1801fe14c3095d290a172 /src/player.h | |
parent | 7a72dcb3b57b70214c4d402be89f9b1dd158d790 (diff) | |
download | openttd-2ee73b50b8dae28f53acabcb5b7c0e3f02139db2.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++) |