summaryrefslogtreecommitdiff
path: root/src/player.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-07-24 17:01:23 +0000
committerrubidium <rubidium@openttd.org>2007-07-24 17:01:23 +0000
commit59d33d0f7ce8210b1fdabc733fd8dbc7a1f18d4b (patch)
tree08ce082e1855582f3c9d1c228a0928e71c054c80 /src/player.h
parent9c9fc1a79ef08d1c3822bc7a4a1373d84dbfa70b (diff)
downloadopenttd-59d33d0f7ce8210b1fdabc733fd8dbc7a1f18d4b.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.h8
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;