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
|
|
@ -402,7 +402,7 @@ void TimeOfDay::_getSunColor( ColorF *outColor ) const
|
|||
//simple check
|
||||
if ( mColorTargets[0].elevation != 0.0f )
|
||||
{
|
||||
AssertFatal(0, "TimeOfDay::GetColor() - First elevation must be 0.0 radians")
|
||||
AssertFatal(0, "TimeOfDay::GetColor() - First elevation must be 0.0 radians");
|
||||
outColor->set(1.0f, 1.0f, 1.0f);
|
||||
//mBandMod = 1.0f;
|
||||
//mCurrentBandColor = color;
|
||||
|
|
@ -411,7 +411,7 @@ void TimeOfDay::_getSunColor( ColorF *outColor ) const
|
|||
|
||||
if ( mColorTargets[mColorTargets.size()-1].elevation != M_PI_F )
|
||||
{
|
||||
AssertFatal(0, "Celestails::GetColor() - Last elevation must be PI")
|
||||
AssertFatal(0, "Celestails::GetColor() - Last elevation must be PI");
|
||||
outColor->set(1.0f, 1.0f, 1.0f);
|
||||
//mBandMod = 1.0f;
|
||||
//mCurrentBandColor = color;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue