equal
deleted
inserted
replaced
15 char *name; |
15 char *name; |
16 ViewportSign sign; |
16 ViewportSign sign; |
17 int32 x; |
17 int32 x; |
18 int32 y; |
18 int32 y; |
19 byte z; |
19 byte z; |
20 PlayerByte owner; // placed by this player. Anyone can delete them though. OWNER_NONE for gray signs from old games. |
20 OwnerByte owner; // placed by this company. Anyone can delete them though. OWNER_NONE for gray signs from old games. |
21 |
21 |
22 /** |
22 /** |
23 * Creates a new sign |
23 * Creates a new sign |
24 */ |
24 */ |
25 Sign(PlayerID owner = INVALID_PLAYER); |
25 Sign(Owner owner = INVALID_OWNER); |
26 |
26 |
27 /** Destroy the sign */ |
27 /** Destroy the sign */ |
28 ~Sign(); |
28 ~Sign(); |
29 |
29 |
30 inline bool IsValid() const { return this->owner != INVALID_PLAYER; } |
30 inline bool IsValid() const { return this->owner != INVALID_OWNER; } |
31 }; |
31 }; |
32 |
32 |
33 static inline SignID GetMaxSignIndex() |
33 static inline SignID GetMaxSignIndex() |
34 { |
34 { |
35 /* TODO - This isn't the real content of the function, but |
35 /* TODO - This isn't the real content of the function, but |