mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-12 19:31:41 +00:00
Tidy up and fix the various Assert macros
Rephrase the macros so that they can be used in expressions, and properly require semicolons. And add the semicolons where missing.
This commit is contained in:
parent
e03c3bb34f
commit
c19a70814c
11 changed files with 40 additions and 44 deletions
|
|
@ -426,7 +426,7 @@ void fxFoliageReplicator::CreateFoliage(void)
|
|||
Point3F MaxPoint( 0.5, 0.5, 0.5 );
|
||||
|
||||
// Check Host.
|
||||
AssertFatal(isClientObject(), "Trying to create Foliage on Server, this is bad!")
|
||||
AssertFatal(isClientObject(), "Trying to create Foliage on Server, this is bad!");
|
||||
|
||||
// Cannot continue without Foliage Texture!
|
||||
if (dStrlen(mFieldData.mFoliageFile) == 0)
|
||||
|
|
@ -1134,7 +1134,7 @@ void fxFoliageReplicator::ProcessQuadrant(fxFoliageQuadrantNode* pParentNode, fx
|
|||
void fxFoliageReplicator::SyncFoliageReplicators(void)
|
||||
{
|
||||
// Check Host.
|
||||
AssertFatal(isServerObject(), "We *MUST* be on server when Synchronising Foliage!")
|
||||
AssertFatal(isServerObject(), "We *MUST* be on server when Synchronising Foliage!");
|
||||
|
||||
// Find the Replicator Set.
|
||||
SimSet *fxFoliageSet = dynamic_cast<SimSet*>(Sim::findObject("fxFoliageSet"));
|
||||
|
|
@ -1196,7 +1196,7 @@ void fxFoliageReplicator::DestroyFoliageItems()
|
|||
void fxFoliageReplicator::DestroyFoliage(void)
|
||||
{
|
||||
// Check Host.
|
||||
AssertFatal(isClientObject(), "Trying to destroy Foliage on Server, this is bad!")
|
||||
AssertFatal(isClientObject(), "Trying to destroy Foliage on Server, this is bad!");
|
||||
|
||||
// Destroy Quad-tree.
|
||||
mPotentialFoliageNodes = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue