summaryrefslogtreecommitdiffstats
path: root/src/modelinfo
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2019-07-29 19:18:03 +0200
committeraap <aap@papnet.eu>2019-07-31 14:33:27 +0200
commit5f6b235301f734b73f8307cf3e29997e7f76eac8 (patch)
tree73037842a302ae6e888e365b32e8ce74287e3f8d /src/modelinfo
parentMerge pull request #175 from erorcun/erorcun (diff)
parentrestore original shadows fading (diff)
downloadre3-5f6b235301f734b73f8307cf3e29997e7f76eac8.tar
re3-5f6b235301f734b73f8307cf3e29997e7f76eac8.tar.gz
re3-5f6b235301f734b73f8307cf3e29997e7f76eac8.tar.bz2
re3-5f6b235301f734b73f8307cf3e29997e7f76eac8.tar.lz
re3-5f6b235301f734b73f8307cf3e29997e7f76eac8.tar.xz
re3-5f6b235301f734b73f8307cf3e29997e7f76eac8.tar.zst
re3-5f6b235301f734b73f8307cf3e29997e7f76eac8.zip
Diffstat (limited to 'src/modelinfo')
-rw-r--r--src/modelinfo/VehicleModelInfo.cpp16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/modelinfo/VehicleModelInfo.cpp b/src/modelinfo/VehicleModelInfo.cpp
index 33e7195b..b412adcf 100644
--- a/src/modelinfo/VehicleModelInfo.cpp
+++ b/src/modelinfo/VehicleModelInfo.cpp
@@ -11,6 +11,8 @@
#include "FileMgr.h"
#include "World.h"
#include "Vehicle.h"
+#include "Automobile.h"
+#include "Train.h"
#include "ModelIndices.h"
#include "ModelInfo.h"
@@ -84,13 +86,13 @@ RwObjectNameIdAssocation boatIds[] = {
};
RwObjectNameIdAssocation trainIds[] = {
- { "door_lhs_dummy", 1, VEHICLE_FLAG_LEFT | VEHICLE_FLAG_COLLAPSE },
- { "door_rhs_dummy", 2, VEHICLE_FLAG_LEFT | VEHICLE_FLAG_COLLAPSE },
- { "light_front", 0, VEHICLE_FLAG_POS | CLUMP_FLAG_NO_HIERID },
- { "light_rear", 1, VEHICLE_FLAG_POS | CLUMP_FLAG_NO_HIERID },
- { "ped_left_entry", 2, VEHICLE_FLAG_DOOR | VEHICLE_FLAG_POS | CLUMP_FLAG_NO_HIERID },
- { "ped_mid_entry", 3, VEHICLE_FLAG_DOOR | VEHICLE_FLAG_POS | CLUMP_FLAG_NO_HIERID },
- { "ped_right_entry", 4, VEHICLE_FLAG_DOOR | VEHICLE_FLAG_POS | CLUMP_FLAG_NO_HIERID },
+ { "door_lhs_dummy", TRAIN_DOOR_LHS, VEHICLE_FLAG_LEFT | VEHICLE_FLAG_COLLAPSE },
+ { "door_rhs_dummy", TRAIN_DOOR_RHS, VEHICLE_FLAG_LEFT | VEHICLE_FLAG_COLLAPSE },
+ { "light_front", TRAIN_POS_LIGHT_FRONT, VEHICLE_FLAG_POS | CLUMP_FLAG_NO_HIERID },
+ { "light_rear", TRAIN_POS_LIGHT_REAR, VEHICLE_FLAG_POS | CLUMP_FLAG_NO_HIERID },
+ { "ped_left_entry", TRAIN_POS_LEFT_ENTRY, VEHICLE_FLAG_DOOR | VEHICLE_FLAG_POS | CLUMP_FLAG_NO_HIERID },
+ { "ped_mid_entry", TRAIN_POS_MID_ENTRY, VEHICLE_FLAG_DOOR | VEHICLE_FLAG_POS | CLUMP_FLAG_NO_HIERID },
+ { "ped_right_entry", TRAIN_POS_RIGHT_ENTRY, VEHICLE_FLAG_DOOR | VEHICLE_FLAG_POS | CLUMP_FLAG_NO_HIERID },
{ nil, 0, 0 }
};