NSVehicle: don't change the drivers' movetype

This commit is contained in:
Marco Cawthorne 2022-09-08 13:38:02 -07:00
parent 9deb12b68d
commit 04fe295035
Signed by: eukara
GPG Key ID: CE2032F0A2882A22
1 changed files with 3 additions and 2 deletions

View File

@ -425,7 +425,8 @@ NSVehicle::PlayerEnter(NSClientPlayer pl)
m_vecPlayerPos[1] = dotproduct(offs, v_right);
m_vecPlayerPos[2] = dotproduct(offs, v_up);
m_vecExitPos = m_vecPlayerPos;
pl.movetype = MOVETYPE_NOCLIP;
owner = pl;
//pl.movetype = MOVETYPE_NOCLIP;
m_eDriver = (entity)pl;
m_eDriverLast = m_eDriver;
pl.vehicle = this;
@ -440,7 +441,7 @@ NSVehicle::PlayerLeave(NSClientPlayer pl)
if (!pl)
return;
pl.movetype = MOVETYPE_WALK;
owner = __NULL__;
pl.flags &= ~FL_INVEHICLE;
if (m_iVehicleFlags & VHF_FROZEN)