diff options
author | aap <aap@papnet.eu> | 2019-07-19 11:57:12 +0200 |
---|---|---|
committer | aap <aap@papnet.eu> | 2019-07-19 11:57:12 +0200 |
commit | 59145cea83da6d0ade8221dbe8c1469be8084ea0 (patch) | |
tree | 3f6dde8e3840e5ebe641f6666c6d790f4a1f1950 /src/vehicles/Door.h | |
parent | 26502ee30a6368686aad0406759f6770d24f31f5 (diff) |
CAutomobile ctor, car spawner, fixes
Diffstat (limited to 'src/vehicles/Door.h')
-rw-r--r-- | src/vehicles/Door.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/vehicles/Door.h b/src/vehicles/Door.h index fc771a40..7bb7bba3 100644 --- a/src/vehicles/Door.h +++ b/src/vehicles/Door.h @@ -26,6 +26,12 @@ struct CDoor CVector m_vecSpeed; CDoor(void); + void Init(float minAngle, float maxAngle, int8 dir, int8 axis) { + m_fMinAngle = minAngle; + m_fMaxAngle = maxAngle; + m_nDirn = dir; + m_nAxis = axis; + } void Open(float ratio); void Process(CVehicle *veh); float RetAngleWhenClosed(void); |