mirror of
				https://github.com/halpz/re3.git
				synced 2025-11-04 12:27:01 +00:00 
			
		
		
		
	Also fix SetModelIndex in CAutomobile and CTrain ctors
This commit is contained in:
		@@ -79,7 +79,7 @@ CAutomobile::CAutomobile(int32 id, uint8 CreatedBy)
 | 
			
		||||
	bBigWheels = false;
 | 
			
		||||
	bWaterTight = false;
 | 
			
		||||
 | 
			
		||||
	SetModelIndex(id);
 | 
			
		||||
	CAutomobile::SetModelIndex(id);
 | 
			
		||||
 | 
			
		||||
	// Already done in CVehicle...
 | 
			
		||||
	switch(GetModelIndex()){
 | 
			
		||||
 
 | 
			
		||||
@@ -45,7 +45,7 @@ CTrain::CTrain(int32 id, uint8 CreatedBy)
 | 
			
		||||
	CVehicleModelInfo *mi = (CVehicleModelInfo*)CModelInfo::GetModelInfo(id);
 | 
			
		||||
	m_vehType = VEHICLE_TYPE_TRAIN;
 | 
			
		||||
	pHandling = mod_HandlingManager.GetHandlingData((eHandlingId)mi->m_handlingId);
 | 
			
		||||
	SetModelIndex(id);
 | 
			
		||||
	CTrain::SetModelIndex(id);
 | 
			
		||||
 | 
			
		||||
	Doors[0].Init(0.8f, 0.0f, 1, 0);
 | 
			
		||||
	Doors[1].Init(-0.8f, 0.0f, 0, 0);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user