mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-07 06:20:40 +00:00
Removed Tabs, added check on connection
This commit is contained in:
parent
55bdfe5dc3
commit
578c4e8f4f
3 changed files with 3 additions and 3 deletions
|
|
@ -80,7 +80,7 @@ LevelInfo::LevelInfo()
|
|||
: mNearClip( 0.1f ),
|
||||
mVisibleDistance( 1000.0f ),
|
||||
#ifdef GHOSTSCOPING
|
||||
mVisibleGhostDistance (200.0f),
|
||||
mVisibleGhostDistance (200.0f),
|
||||
#endif
|
||||
mDecalBias( 0.0015f ),
|
||||
mCanvasClearColor( 255, 0, 255, 255 ),
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@ class LevelInfo : public NetObject
|
|||
F32 mVisibleDistance;
|
||||
|
||||
#ifdef GHOSTSCOPING
|
||||
F32 mVisibleGhostDistance;
|
||||
F32 mVisibleGhostDistance;
|
||||
#endif
|
||||
F32 mDecalBias;
|
||||
|
||||
|
|
|
|||
|
|
@ -672,7 +672,7 @@ void SceneObject::onCameraScopeQuery( NetConnection* connection, CameraScopeQuer
|
|||
#ifdef GHOSTSCOPING
|
||||
SceneManager* scenemanager = getSceneManager();
|
||||
GameConnection* conn = dynamic_cast<GameConnection*> (connection);
|
||||
if (conn->getVisibleGhostDistance() == 0.0f)
|
||||
if (conn && conn->getVisibleGhostDistance() == 0.0f)
|
||||
query->visibleDistance = scenemanager->getVisibleGhostDistance();
|
||||
else
|
||||
query->visibleDistance = conn->getVisibleGhostDistance();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue