equal
deleted
inserted
replaced
81 int64 income; // How much did the company earned last year |
81 int64 income; // How much did the company earned last year |
82 uint16 performance; // What was his performance last month? |
82 uint16 performance; // What was his performance last month? |
83 uint16 num_vehicle[NETWORK_VEHICLE_TYPES]; // How many vehicles are there of this type? |
83 uint16 num_vehicle[NETWORK_VEHICLE_TYPES]; // How many vehicles are there of this type? |
84 uint16 num_station[NETWORK_STATION_TYPES]; // How many stations are there of this type? |
84 uint16 num_station[NETWORK_STATION_TYPES]; // How many stations are there of this type? |
85 char players[NETWORK_PLAYERS_LENGTH]; // The players that control this company (Name1, name2, ..) |
85 char players[NETWORK_PLAYERS_LENGTH]; // The players that control this company (Name1, name2, ..) |
|
86 uint16 months_empty; // How many months the company is empty |
86 } NetworkPlayerInfo; |
87 } NetworkPlayerInfo; |
87 |
88 |
88 typedef struct NetworkClientInfo { |
89 typedef struct NetworkClientInfo { |
89 uint16 client_index; // Index of the client (same as ClientState->index) |
90 uint16 client_index; // Index of the client (same as ClientState->index) |
90 char client_name[NETWORK_NAME_LENGTH]; // Name of the client |
91 char client_name[NETWORK_NAME_LENGTH]; // Name of the client |
173 VARDEF uint16 _network_udp_broadcast; |
174 VARDEF uint16 _network_udp_broadcast; |
174 |
175 |
175 VARDEF bool _network_advertise; |
176 VARDEF bool _network_advertise; |
176 VARDEF uint16 _network_last_advertise_date; |
177 VARDEF uint16 _network_last_advertise_date; |
177 |
178 |
|
179 VARDEF bool _network_autoclean_companies; |
|
180 VARDEF uint8 _network_autoclean_unprotected; // Remove a company after X months |
|
181 VARDEF uint8 _network_autoclean_protected; // Unprotect a company after X months |
|
182 |
178 #endif /* ENABLE_NETWORK */ |
183 #endif /* ENABLE_NETWORK */ |
179 |
184 |
180 // Those variables must always be registered! |
185 // Those variables must always be registered! |
181 VARDEF bool _networking; |
186 VARDEF bool _networking; |
182 VARDEF bool _network_available; // is network mode available? |
187 VARDEF bool _network_available; // is network mode available? |