Merge pull request #950 from Azaezel/alpha403/flyingVehicleCleanups

add an explicit interpolatetick back in to flyingvehicle
This commit is contained in:
Brian Roberts 2023-01-24 15:29:59 -06:00 committed by GitHub
commit a4b13b06fc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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);