mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-09-01 10:59:12 +00:00
(svn r8428) -Codechange: Add proper names to aircraft subtypes instead of magic numbers and add a function IsNormalAircraft() which tells us whether the aircraft is in fact some flying device or a rotor/shadow.
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
#include "network_data.h"
|
||||
#include "core/tcp.h"
|
||||
#include "../train.h"
|
||||
#include "../aircraft.h"
|
||||
#include "../date.h"
|
||||
#include "table/strings.h"
|
||||
#include "../functions.h"
|
||||
@@ -1255,7 +1256,7 @@ void NetworkPopulateCompanyInfo(void)
|
||||
break;
|
||||
|
||||
case VEH_Aircraft:
|
||||
if (v->subtype <= 2) _network_player_info[v->owner].num_vehicle[3]++;
|
||||
if (IsNormalAircraft(v)) _network_player_info[v->owner].num_vehicle[3]++;
|
||||
break;
|
||||
|
||||
case VEH_Ship:
|
||||
|
Reference in New Issue
Block a user