Changeset - r11898:9a83f7c7f3a1
[Not reviewed]
master
0 5 0
frosch - 15 years ago 2009-05-13 21:45:56
frosch@openttd.org
(svn r16303) -Codechange: Use the question mark as default sprite when creating vehicles, instead of arbitrary sprites not related to the vehicle. (though that also applies to the question mark)
5 files changed with 8 insertions and 7 deletions:
0 comments (0 inline, 0 general)
src/aircraft_cmd.cpp
Show inline comments
 
@@ -383,7 +383,7 @@ CommandCost CmdBuildAircraft(TileIndex t
 
		v->date_of_last_service = _date;
 
		v->build_year = u->build_year = _cur_year;
 

	
 
		v->cur_image = u->cur_image = 0xEA0;
 
		v->cur_image = u->cur_image = SPR_IMG_QUERY;
 

	
 
		v->random_bits = VehicleRandomBits();
 
		u->random_bits = VehicleRandomBits();
src/articulated_vehicles.cpp
Show inline comments
 
@@ -9,6 +9,7 @@
 
#include "vehicle_func.h"
 

	
 
#include "table/strings.h"
 
#include "table/sprites.h"
 

	
 
static const uint MAX_ARTICULATED_PARTS = 100; ///< Maximum of articulated parts per vehicle, i.e. when to abort calling the articulated vehicle callback.
 

	
 
@@ -365,7 +366,7 @@ void AddArticulatedParts(Vehicle *first,
 
		u->max_age = 0;
 
		u->engine_type = engine_type;
 
		u->value = 0;
 
		u->cur_image = 0xAC2;
 
		u->cur_image = SPR_IMG_QUERY;
 
		u->random_bits = VehicleRandomBits();
 

	
 
		if (flip_image) u->spritenum++;
src/roadveh_cmd.cpp
Show inline comments
 
@@ -238,7 +238,7 @@ CommandCost CmdBuildRoadVeh(TileIndex ti
 
		v->date_of_last_service = _date;
 
		v->build_year = _cur_year;
 

	
 
		v->cur_image = 0xC15;
 
		v->cur_image = SPR_IMG_QUERY;
 
		v->random_bits = VehicleRandomBits();
 
		SetRoadVehFront(v);
 

	
src/ship_cmd.cpp
Show inline comments
 
@@ -789,7 +789,7 @@ CommandCost CmdBuildShip(TileIndex tile,
 
		v->service_interval = _settings_game.vehicle.servint_ships;
 
		v->date_of_last_service = _date;
 
		v->build_year = _cur_year;
 
		v->cur_image = 0x0E5E;
 
		v->cur_image = SPR_IMG_QUERY;
 
		v->random_bits = VehicleRandomBits();
 

	
 
		v->vehicle_flags = 0;
src/train_cmd.cpp
Show inline comments
 
@@ -699,7 +699,7 @@ static CommandCost CmdBuildRailWagon(Eng
 
		v->u.rail.railtype = rvi->railtype;
 

	
 
		v->build_year = _cur_year;
 
		v->cur_image = 0xAC2;
 
		v->cur_image = SPR_IMG_QUERY;
 
		v->random_bits = VehicleRandomBits();
 

	
 
		v->group_id = DEFAULT_GROUP;
 
@@ -761,7 +761,7 @@ static void AddRearEngineToMultiheadedTr
 
	u->u.rail.railtype = v->u.rail.railtype;
 
	u->engine_type = v->engine_type;
 
	u->build_year = v->build_year;
 
	u->cur_image = 0xAC2;
 
	u->cur_image = SPR_IMG_QUERY;
 
	u->random_bits = VehicleRandomBits();
 
	SetMultiheaded(v);
 
	SetMultiheaded(u);
 
@@ -856,7 +856,7 @@ CommandCost CmdBuildRailVehicle(TileInde
 
		v->service_interval = _settings_game.vehicle.servint_trains;
 
		v->date_of_last_service = _date;
 
		v->build_year = _cur_year;
 
		v->cur_image = 0xAC2;
 
		v->cur_image = SPR_IMG_QUERY;
 
		v->random_bits = VehicleRandomBits();
 

	
 
//		v->vehicle_flags = 0;
0 comments (0 inline, 0 general)