(svn r8946) -Feature: [NewGRF] Add support for vehicle variables 0xFE and 0xFF bit 10,

which is set when a vehicle was built during the exclusive testing phase.
This commit is contained in:
maedhros
2007-02-28 17:59:05 +00:00
parent 2f557f7dc0
commit 78c3edcbb1
6 changed files with 28 additions and 0 deletions

View File

@@ -785,6 +785,9 @@ int32 CmdBuildRailVehicle(TileIndex tile, uint32 flags, uint32 p1, uint32 p2)
v->cur_image = 0xAC2;
v->random_bits = VehicleRandomBits();
v->vehicle_flags = 0;
if (e->flags & ENGINE_EXCLUSIVE_PREVIEW) SETBIT(v->vehicle_flags, VF_BUILT_AS_PROTOTYPE);
v->subtype = 0;
SetFrontEngine(v);
SetTrainEngine(v);