equal
deleted
inserted
replaced
41 |
41 |
42 byte player_color; |
42 byte player_color; |
43 Livery livery[LS_END]; |
43 Livery livery[LS_END]; |
44 byte player_money_fraction; |
44 byte player_money_fraction; |
45 byte avail_railtypes; |
45 byte avail_railtypes; |
|
46 byte avail_roadtypes; |
46 byte block_preview; |
47 byte block_preview; |
47 PlayerByte index; |
48 PlayerByte index; |
48 |
49 |
49 uint16 cargo_types; ///< which cargo types were transported the last year |
50 uint16 cargo_types; ///< which cargo types were transported the last year |
50 |
51 |
120 { |
121 { |
121 return IS_INSIDE_1D(pi, PLAYER_FIRST, MAX_PLAYERS); |
122 return IS_INSIDE_1D(pi, PLAYER_FIRST, MAX_PLAYERS); |
122 } |
123 } |
123 |
124 |
124 byte GetPlayerRailtypes(PlayerID p); |
125 byte GetPlayerRailtypes(PlayerID p); |
|
126 byte GetPlayerRoadtypes(PlayerID p); |
125 |
127 |
126 /** Finds out if a Player has a certain railtype available */ |
128 /** Finds out if a Player has a certain railtype available */ |
127 static inline bool HasRailtypeAvail(const Player *p, RailType Railtype) |
129 static inline bool HasRailtypeAvail(const Player *p, RailType Railtype) |
128 { |
130 { |
129 return HASBIT(p->avail_railtypes, Railtype); |
131 return HASBIT(p->avail_railtypes, Railtype); |