mirror of https://github.com/OpenTTD/OpenTTD
(svn r4838) Newgrf : Add empty base for newcargos
parent
bcd2b32790
commit
4938d0a011
27
newgrf.c
27
newgrf.c
|
@ -1050,6 +1050,11 @@ static bool BridgeChangeInfo(uint brid, int numinfo, int prop, byte **bufp, int
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static bool CargosChangeInfo(uint gvid, int numinfo, int prop, byte **bufp, int len)
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
static bool GlobalVarChangeInfo(uint gvid, int numinfo, int prop, byte **bufp, int len)
|
static bool GlobalVarChangeInfo(uint gvid, int numinfo, int prop, byte **bufp, int len)
|
||||||
{
|
{
|
||||||
byte *buf = *bufp;
|
byte *buf = *bufp;
|
||||||
|
@ -1098,15 +1103,19 @@ static void VehicleChangeInfo(byte *buf, int len)
|
||||||
/* TODO: Bridges, town houses. */
|
/* TODO: Bridges, town houses. */
|
||||||
|
|
||||||
static const VCI_Handler handler[] = {
|
static const VCI_Handler handler[] = {
|
||||||
/* GSF_TRAIN */ RailVehicleChangeInfo,
|
/* GSF_TRAIN */ RailVehicleChangeInfo,
|
||||||
/* GSF_ROAD */ RoadVehicleChangeInfo,
|
/* GSF_ROAD */ RoadVehicleChangeInfo,
|
||||||
/* GSF_SHIP */ ShipVehicleChangeInfo,
|
/* GSF_SHIP */ ShipVehicleChangeInfo,
|
||||||
/* GSF_AIRCRAFT */ AircraftVehicleChangeInfo,
|
/* GSF_AIRCRAFT */ AircraftVehicleChangeInfo,
|
||||||
/* GSF_STATION */ StationChangeInfo,
|
/* GSF_STATION */ StationChangeInfo,
|
||||||
/* GSF_CANAL */ NULL,
|
/* GSF_CANAL */ NULL,
|
||||||
/* GSF_BRIDGE */ BridgeChangeInfo,
|
/* GSF_BRIDGE */ BridgeChangeInfo,
|
||||||
/* GSF_TOWNHOUSE */NULL,
|
/* GSF_TOWNHOUSE */ NULL,
|
||||||
/* GSF_GLOBALVAR */GlobalVarChangeInfo,
|
/* GSF_GLOBALVAR */ GlobalVarChangeInfo,
|
||||||
|
/* GSF_INDUSTRYTILES */NULL,
|
||||||
|
/* GSF_INDUSTRIES */ NULL,
|
||||||
|
/* GSF_CARGOS */ CargosChangeInfo,
|
||||||
|
/* GSF_SOUNDFX */ NULL,
|
||||||
};
|
};
|
||||||
|
|
||||||
uint8 feature;
|
uint8 feature;
|
||||||
|
|
|
@ -67,6 +67,7 @@ typedef uint16 TownID;
|
||||||
typedef byte PlayerID;
|
typedef byte PlayerID;
|
||||||
typedef byte OrderID;
|
typedef byte OrderID;
|
||||||
typedef byte CargoID;
|
typedef byte CargoID;
|
||||||
|
typedef byte LandscapeID;
|
||||||
typedef uint16 StringID;
|
typedef uint16 StringID;
|
||||||
typedef uint32 SpriteID; ///< The number of a sprite, without mapping bits and colortables
|
typedef uint32 SpriteID; ///< The number of a sprite, without mapping bits and colortables
|
||||||
typedef uint32 PalSpriteID; ///< The number of a sprite plus all the mapping bits and colortables
|
typedef uint32 PalSpriteID; ///< The number of a sprite plus all the mapping bits and colortables
|
||||||
|
|
Loading…
Reference in New Issue