mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-27 23:35:45 +00:00
QOC
Code cleaning of unnecessary else' Remove unnecessary dynamic_casts
This commit is contained in:
parent
e9d0f68b55
commit
57aceb60fb
13 changed files with 33 additions and 28 deletions
|
|
@ -51,8 +51,8 @@ struct FlyingVehicleData: public VehicleData {
|
|||
{
|
||||
if (mFlyingSoundsAsset[id] != NULL)
|
||||
return mFlyingSoundsAsset[id]->getSfxProfile();
|
||||
else
|
||||
return NULL;
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
enum Jets {
|
||||
|
|
|
|||
|
|
@ -52,8 +52,8 @@ class HoverVehicleData : public VehicleData
|
|||
{
|
||||
if (mHoverSoundsAsset[id] != NULL)
|
||||
return mHoverSoundsAsset[id]->getSfxProfile();
|
||||
else
|
||||
return NULL;
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
enum Jets {
|
||||
|
|
|
|||
|
|
@ -56,8 +56,8 @@ struct VehicleData : public RigidShapeData
|
|||
{
|
||||
if (mVehicleBodySoundsAsset[id] != NULL)
|
||||
return mVehicleBodySoundsAsset[id]->getSfxProfile();
|
||||
else
|
||||
return NULL;
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -88,8 +88,8 @@ struct VehicleData : public RigidShapeData
|
|||
{
|
||||
if (mVehicleWaterSoundsAsset[id] != NULL)
|
||||
return mVehicleWaterSoundsAsset[id]->getSfxProfile();
|
||||
else
|
||||
return NULL;
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
F32 exitSplashSoundVel;
|
||||
|
|
|
|||
|
|
@ -125,8 +125,8 @@ struct WheeledVehicleData: public VehicleData
|
|||
{
|
||||
if (mWheeledVehicleSoundsAsset[id] != NULL)
|
||||
return mWheeledVehicleSoundsAsset[id]->getSfxProfile();
|
||||
else
|
||||
return NULL;
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue