add an explicit interpolatetick back in to flyingvehicle

fixe sounds not moving along with it
This commit is contained in:
AzaezelX 2023-01-23 20:03:02 -06:00
parent 23895e365a
commit 2c21c4ebd7
2 changed files with 10 additions and 0 deletions

View file

@ -404,8 +404,17 @@ void FlyingVehicle::onRemove()
//----------------------------------------------------------------------------
void FlyingVehicle::interpolateTick(F32 dt)
{
PROFILE_SCOPE(FlyingVehicle_InterpolateTick);
Parent::interpolateTick(dt);
updateEngineSound(1);
updateJet(dt);
}
void FlyingVehicle::advanceTime(F32 dt)
{
PROFILE_SCOPE(FlyingVehicle_AdvanceTime);
Parent::advanceTime(dt);
updateEngineSound(1);

View file

@ -187,6 +187,7 @@ class FlyingVehicle: public Vehicle
bool onAdd();
void onRemove();
void interpolateTick(F32 dt);
void advanceTime(F32 dt);
void writePacketData(GameConnection *conn, BitStream *stream);