diff options
author | rubidium <rubidium@openttd.org> | 2007-07-24 17:01:23 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-07-24 17:01:23 +0000 |
commit | 5d3f058b65c97b61709061b721d1ad6922dbc9ef (patch) | |
tree | 08ce082e1855582f3c9d1c228a0928e71c054c80 /src/player.h | |
parent | 0d9a51de6ddc432e3d48bf5f2ff5027067273f2c (diff) | |
download | openttd-5d3f058b65c97b61709061b721d1ad6922dbc9ef.tar.xz |
(svn r10673) -Cleanup: some assorted style cleanups. Primarily type* var -> type *var.
Diffstat (limited to 'src/player.h')
-rw-r--r-- | src/player.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/player.h b/src/player.h index 70bf94d84..6ecbbd7dc 100644 --- a/src/player.h +++ b/src/player.h @@ -212,8 +212,8 @@ uint16 GetDrawStringPlayerColor(PlayerID player); void ChangeOwnershipOfPlayerItems(PlayerID old_player, PlayerID new_player); void GetNameOfOwner(Owner owner, TileIndex tile); -Money CalculateCompanyValue(const Player* p); -void InvalidatePlayerWindows(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++) @@ -236,7 +236,7 @@ static inline byte ActivePlayerCount() return count; } -static inline Player* GetPlayer(PlayerID i) +static inline Player *GetPlayer(PlayerID i) { assert(IS_INSIDE_1D(i, PLAYER_FIRST, lengthof(_players))); return &_players[i]; @@ -282,7 +282,7 @@ static inline bool ValParamRailtype(uint32 rail) { return HASBIT(GetPlayer(_curr * @param p the player "in action" * @return The "best" railtype a player has available */ -static inline RailType GetBestRailtype(const Player* p) +static inline RailType GetBestRailtype(const Player *p) { if (HasRailtypeAvail(p, RAILTYPE_MAGLEV)) return RAILTYPE_MAGLEV; if (HasRailtypeAvail(p, RAILTYPE_MONO)) return RAILTYPE_MONO; |