mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-16 09:04:38 +00:00
warning C4706: assignment within conditional expression
This commit is contained in:
parent
78e4a32ad7
commit
af38320300
1 changed files with 2 additions and 1 deletions
|
|
@ -522,8 +522,9 @@ void ForestWindEmitter::_renderEmitterInfo( ObjectRenderInst *ri, SceneRenderSta
|
||||||
// If the camera is close to the sphere, shrink the sphere so it remains visible.
|
// If the camera is close to the sphere, shrink the sphere so it remains visible.
|
||||||
GameConnection* gc = GameConnection::getConnectionToServer();
|
GameConnection* gc = GameConnection::getConnectionToServer();
|
||||||
GameBase* gb;
|
GameBase* gb;
|
||||||
if ( gc && (gb = gc->getCameraObject()) )
|
if (gc && (gc->getCameraObject()))
|
||||||
{
|
{
|
||||||
|
gb = gc->getCameraObject();
|
||||||
F32 camDist = (gb->getPosition() - getPosition()).len();
|
F32 camDist = (gb->getPosition() - getPosition()).len();
|
||||||
if ( camDist < mWindRadius )
|
if ( camDist < mWindRadius )
|
||||||
useRadius = camDist;
|
useRadius = camDist;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue