mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-06 05:50:31 +00:00
Merge pull request #1391 from Azaezel/C4706
warning C4706: assignment within conditional expression
This commit is contained in:
commit
c0e82d72a2
1 changed files with 2 additions and 2 deletions
|
|
@ -521,8 +521,8 @@ void ForestWindEmitter::_renderEmitterInfo( ObjectRenderInst *ri, SceneRenderSta
|
|||
{
|
||||
// If the camera is close to the sphere, shrink the sphere so it remains visible.
|
||||
GameConnection* gc = GameConnection::getConnectionToServer();
|
||||
GameBase* gb;
|
||||
if ( gc && (gb = gc->getCameraObject()) )
|
||||
GameBase *gb = gc ? gc->getCameraObject() : NULL;
|
||||
if (gb)
|
||||
{
|
||||
F32 camDist = (gb->getPosition() - getPosition()).len();
|
||||
if ( camDist < mWindRadius )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue