Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Also fix SetModelIndex in CAutomobile and CTrain ctors
- Loading branch information
Showing
with
2 additions
and
2 deletions.
-
+1
−1
src/vehicles/Automobile.cpp
-
+1
−1
src/vehicles/Train.cpp
There are no files selected for viewing
|
|
@@ -73,7 +73,7 @@ CAutomobile::CAutomobile(int32 id, uint8 CreatedBy) |
|
bBigWheels = false;
|
|
bBigWheels = false;
|
|
bWaterTight = false;
|
|
bWaterTight = false;
|
|
|
|
|
|
SetModelIndex(id);
|
|
CAutomobile::SetModelIndex(id);
|
|
|
|
|
|
pHandling = mod_HandlingManager.GetHandlingData((eHandlingId)mi->m_handlingId);
|
|
pHandling = mod_HandlingManager.GetHandlingData((eHandlingId)mi->m_handlingId);
|
|
|
|
|
|
|
|
|
|
@@ -44,7 +44,7 @@ CTrain::CTrain(int32 id, uint8 CreatedBy) |
|
CVehicleModelInfo *mi = (CVehicleModelInfo*)CModelInfo::GetModelInfo(id);
|
|
CVehicleModelInfo *mi = (CVehicleModelInfo*)CModelInfo::GetModelInfo(id);
|
|
m_vehType = VEHICLE_TYPE_TRAIN;
|
|
m_vehType = VEHICLE_TYPE_TRAIN;
|
|
pHandling = mod_HandlingManager.GetHandlingData((eHandlingId)mi->m_handlingId);
|
|
pHandling = mod_HandlingManager.GetHandlingData((eHandlingId)mi->m_handlingId);
|
|
SetModelIndex(id);
|
|
CTrain::SetModelIndex(id);
|
|
|
|
|
|
Doors[0].Init(0.8f, 0.0f, 1, 0);
|
|
Doors[0].Init(0.8f, 0.0f, 1, 0);
|
|
Doors[1].Init(-0.8f, 0.0f, 0, 0);
|
|
Doors[1].Init(-0.8f, 0.0f, 0, 0);
|
|
|
|