mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-19 20:24:49 +00:00
* BugFix: Correct the vehicle types double-tapping their onAdd and onRemove callbacks - rigidShape handles dispatching the script callbacks.
This commit is contained in:
parent
e0e3ebc69d
commit
2b15c9e89d
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue