(svn r4902) Newgrf : Introduction of the newgrf_cargo files.

Clearing engine and newgrf_engine from cargo related structures.
Apart from moving stuff cargo related, there is nothing really newcargo for now.
This commit is contained in:
belugas
2006-05-18 02:43:23 +00:00
parent 0194a3da1e
commit 69f47611db
10 changed files with 161 additions and 123 deletions

View File

@@ -14,22 +14,9 @@
#include "newgrf_engine.h"
#include "newgrf_station.h"
#include "newgrf_spritegroup.h"
#include "newgrf_cargo.h"
/* XXX These tables should be moved / ripped out when newcargos is implemented. */
/* Cargo classes */
enum {
CC_NONE = 0,
CC_PASSENGERS = 1 << 0,
CC_MAIL = 1 << 1,
CC_EXPRESS = 1 << 2,
CC_ARMOURED = 1 << 3,
CC_BULK = 1 << 4,
CC_PIECE_GOODS = 1 << 5,
CC_LIQUID = 1 << 6,
CC_REFRIGERATED = 1 << 7,
};
/* Default cargo classes */
static const uint16 _cargo_classes[NUM_GLOBAL_CID] = {
@@ -61,9 +48,9 @@ static const uint16 _cargo_classes[NUM_GLOBAL_CID] = {
CC_LIQUID,
CC_PIECE_GOODS,
CC_PIECE_GOODS,
CC_NONE,
CC_NONE,
CC_NONE,
CC_NOAVAILABLE,
CC_NOAVAILABLE,
CC_NOAVAILABLE,
};
int _traininfo_vehicle_pitch = 0;