summaryrefslogtreecommitdiffstats
path: root/src/vehicles/HandlingMgr.h
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2019-07-17 23:58:06 +0200
committeraap <aap@papnet.eu>2019-07-17 23:58:06 +0200
commitba242bcf584d885167a9499e53f5bcaf6c9cc866 (patch)
tree29477a626a36462ec3280081388ff1b965be860f /src/vehicles/HandlingMgr.h
parentMerge pull request #145 from guard3/master (diff)
downloadre3-ba242bcf584d885167a9499e53f5bcaf6c9cc866.tar
re3-ba242bcf584d885167a9499e53f5bcaf6c9cc866.tar.gz
re3-ba242bcf584d885167a9499e53f5bcaf6c9cc866.tar.bz2
re3-ba242bcf584d885167a9499e53f5bcaf6c9cc866.tar.lz
re3-ba242bcf584d885167a9499e53f5bcaf6c9cc866.tar.xz
re3-ba242bcf584d885167a9499e53f5bcaf6c9cc866.tar.zst
re3-ba242bcf584d885167a9499e53f5bcaf6c9cc866.zip
Diffstat (limited to 'src/vehicles/HandlingMgr.h')
-rw-r--r--src/vehicles/HandlingMgr.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/vehicles/HandlingMgr.h b/src/vehicles/HandlingMgr.h
index 7d8613da..70f1c005 100644
--- a/src/vehicles/HandlingMgr.h
+++ b/src/vehicles/HandlingMgr.h
@@ -85,7 +85,7 @@ enum
struct tHandlingData
{
- int32 nIdentifier;
+ eHandlingId nIdentifier;
float fMass;
float fInvMass;
float fTurnMass;
@@ -136,6 +136,8 @@ public:
void ConvertDataToGameUnits(tHandlingData *handling);
int32 GetHandlingId(const char *name);
tHandlingData *GetHandlingData(eHandlingId id) { return &HandlingData[id]; }
+ bool HasRearWheelDrive(eHandlingId id) { return HandlingData[id].Transmission.nDriveType == 'R'; }
+ bool HasFrontWheelDrive(eHandlingId id) { return HandlingData[id].Transmission.nDriveType == 'F'; }
};
VALIDATE_SIZE(cHandlingDataMgr, 0x3030);
extern cHandlingDataMgr &mod_HandlingManager;