forked from mirror/OpenTTD
(svn r4132) - Missed 3 CargoID's
This commit is contained in:
@@ -2327,7 +2327,7 @@ static void AiStateBuildRailVeh(Player *p)
|
|||||||
TileIndex tile;
|
TileIndex tile;
|
||||||
EngineID veh;
|
EngineID veh;
|
||||||
int i;
|
int i;
|
||||||
int cargo;
|
CargoID cargo;
|
||||||
int32 cost;
|
int32 cost;
|
||||||
Vehicle *v;
|
Vehicle *v;
|
||||||
uint loco_id;
|
uint loco_id;
|
||||||
|
@@ -397,7 +397,7 @@ int GetCustomEngineSprite(EngineID engine, const Vehicle* v, Direction direction
|
|||||||
{
|
{
|
||||||
const SpriteGroup *group;
|
const SpriteGroup *group;
|
||||||
const RealSpriteGroup *rsg;
|
const RealSpriteGroup *rsg;
|
||||||
byte cargo = GC_PURCHASE;
|
CargoID cargo = GC_PURCHASE;
|
||||||
byte loaded = 0;
|
byte loaded = 0;
|
||||||
bool in_motion = 0;
|
bool in_motion = 0;
|
||||||
int totalsets, spriteset;
|
int totalsets, spriteset;
|
||||||
@@ -487,7 +487,7 @@ bool UsesWagonOverride(const Vehicle* v)
|
|||||||
uint16 GetCallBackResult(uint16 callback_info, EngineID engine, const Vehicle *v)
|
uint16 GetCallBackResult(uint16 callback_info, EngineID engine, const Vehicle *v)
|
||||||
{
|
{
|
||||||
const SpriteGroup *group;
|
const SpriteGroup *group;
|
||||||
byte cargo = GC_DEFAULT;
|
CargoID cargo = GC_DEFAULT;
|
||||||
|
|
||||||
if (v != NULL)
|
if (v != NULL)
|
||||||
cargo = _global_cargo_id[_opt.landscape][v->cargo_type];
|
cargo = _global_cargo_id[_opt.landscape][v->cargo_type];
|
||||||
|
Reference in New Issue
Block a user