(svn r9917) -Codechange: prepare some more areas for more road types.

This commit is contained in:
rubidium
2007-05-25 08:13:01 +00:00
parent a507341089
commit 21546a66f3
9 changed files with 42 additions and 12 deletions

View File

@@ -168,6 +168,7 @@ struct Player {
Livery livery[LS_END];
byte player_money_fraction;
byte avail_railtypes;
byte avail_roadtypes;
byte block_preview;
PlayerByte index;
@@ -248,6 +249,7 @@ static inline bool IsValidPlayer(PlayerID pi)
}
byte GetPlayerRailtypes(PlayerID p);
byte GetPlayerRoadtypes(PlayerID p);
/** Finds out if a Player has a certain railtype available */
static inline bool HasRailtypeAvail(const Player *p, RailType Railtype)