File diff r5586:c50e3258a19f → r5587:034e5e185dc2
src/aircraft_cmd.cpp
Show inline comments
 
@@ -243,13 +243,13 @@ int32 CmdBuildAircraft(TileIndex tile, u
 

	
 
		v = vl[0];
 
		u = vl[1];
 

	
 
		v->unitnumber = unit_num;
 
		v->type = u->type = VEH_Aircraft;
 
		v->direction = 3;
 
		v->direction = DIR_SE;
 

	
 
		v->owner = u->owner = _current_player;
 

	
 
		v->tile = tile;
 
//		u->tile = 0;
 

	
 
@@ -379,13 +379,13 @@ int32 CmdBuildAircraft(TileIndex tile, u
 
		if (v->subtype == 0) {
 
			w = vl[2];
 

	
 
			u->next = w;
 

	
 
			w->type = VEH_Aircraft;
 
			w->direction = 0;
 
			w->direction = DIR_N;
 
			w->owner = _current_player;
 
			w->x_pos = v->x_pos;
 
			w->y_pos = v->y_pos;
 
			w->z_pos = v->z_pos + 5;
 
			w->x_offs = w->y_offs = -1;
 
			w->sprite_width = w->sprite_height = 2;
 
@@ -904,13 +904,14 @@ static byte GetAircraftFlyingAltitude(co
 

	
 
static bool AircraftController(Vehicle *v)
 
{
 
	Station *st;
 
	const AirportMovingData *amd;
 
	Vehicle *u;
 
	byte z,newdir,maxz,curz;
 
	byte z, maxz, curz;
 
	Direction newdir;
 
	GetNewVehiclePosResult gp;
 
	uint dist;
 
	int x,y;
 

	
 
	st = GetStation(v->u.air.targetairport);
 

	
 
@@ -1416,13 +1417,13 @@ static void AircraftNextAirportPos_and_O
 

	
 
static void AircraftLeaveHangar(Vehicle *v)
 
{
 
	v->cur_speed = 0;
 
	v->subspeed = 0;
 
	v->progress = 0;
 
	v->direction = 3;
 
	v->direction = DIR_SE;
 
	v->vehstatus &= ~VS_HIDDEN;
 
	{
 
		Vehicle *u = v->next;
 
		u->vehstatus &= ~VS_HIDDEN;
 

	
 
		// Rotor blades