1
0
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:
Darkvater
2007-01-27 12:29:55 +00:00
parent 8bebb83de9
commit 50ca901b40
11 changed files with 74 additions and 50 deletions

View File

@@ -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: