mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-12 19:31:41 +00:00
suggested revision
This commit is contained in:
parent
af38320300
commit
c100d7f932
1 changed files with 2 additions and 3 deletions
|
|
@ -521,10 +521,9 @@ 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 && (gc->getCameraObject()))
|
||||
GameBase *gb = gc ? gc->getCameraObject() : NULL;
|
||||
if (gb)
|
||||
{
|
||||
gb = gc->getCameraObject();
|
||||
F32 camDist = (gb->getPosition() - getPosition()).len();
|
||||
if ( camDist < mWindRadius )
|
||||
useRadius = camDist;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue