Merge pull request #669 from Ragora/bugfix-on-add-remove-doubletap

BugFix: Correct the vehicle types double-tapping onAdd and onRemove
This commit is contained in:
Brian Roberts 2021-11-11 15:44:33 -06:00 committed by GitHub
commit 744eca58b0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 0 additions and 12 deletions

View file

@ -348,9 +348,6 @@ bool FlyingVehicle::onAdd()
return false;
addToScene();
if (isServerObject())
scriptOnAdd();
return true;
}
@ -400,7 +397,6 @@ void FlyingVehicle::onRemove()
SFX_DELETE( mJetSound );
SFX_DELETE( mEngineSound );
scriptOnRemove();
removeFromScene();
Parent::onRemove();
}

View file

@ -512,10 +512,6 @@ bool HoverVehicle::onAdd()
}
}
if (isServerObject())
scriptOnAdd();
return true;
}
@ -526,7 +522,6 @@ void HoverVehicle::onRemove()
SFX_DELETE( mEngineSound );
SFX_DELETE( mFloatSound );
scriptOnRemove();
removeFromScene();
Parent::onRemove();
}

View file

@ -565,8 +565,6 @@ bool WheeledVehicle::onAdd()
return false;
addToScene();
if (isServerObject())
scriptOnAdd();
return true;
}
@ -588,7 +586,6 @@ void WheeledVehicle::onRemove()
SFX_DELETE( mSquealSound );
//
scriptOnRemove();
removeFromScene();
Parent::onRemove();
}