mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 16:44:36 +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 ),
|
: mNearClip( 0.1f ),
|
||||||
mVisibleDistance( 1000.0f ),
|
mVisibleDistance( 1000.0f ),
|
||||||
#ifdef GHOSTSCOPING
|
#ifdef GHOSTSCOPING
|
||||||
mVisibleGhostDistance (200.0f),
|
mVisibleGhostDistance (200.0f),
|
||||||
#endif
|
#endif
|
||||||
mDecalBias( 0.0015f ),
|
mDecalBias( 0.0015f ),
|
||||||
mCanvasClearColor( 255, 0, 255, 255 ),
|
mCanvasClearColor( 255, 0, 255, 255 ),
|
||||||
|
|
|
||||||
|
|
@ -57,7 +57,7 @@ class LevelInfo : public NetObject
|
||||||
F32 mVisibleDistance;
|
F32 mVisibleDistance;
|
||||||
|
|
||||||
#ifdef GHOSTSCOPING
|
#ifdef GHOSTSCOPING
|
||||||
F32 mVisibleGhostDistance;
|
F32 mVisibleGhostDistance;
|
||||||
#endif
|
#endif
|
||||||
F32 mDecalBias;
|
F32 mDecalBias;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -672,7 +672,7 @@ void SceneObject::onCameraScopeQuery( NetConnection* connection, CameraScopeQuer
|
||||||
#ifdef GHOSTSCOPING
|
#ifdef GHOSTSCOPING
|
||||||
SceneManager* scenemanager = getSceneManager();
|
SceneManager* scenemanager = getSceneManager();
|
||||||
GameConnection* conn = dynamic_cast<GameConnection*> (connection);
|
GameConnection* conn = dynamic_cast<GameConnection*> (connection);
|
||||||
if (conn->getVisibleGhostDistance() == 0.0f)
|
if (conn && conn->getVisibleGhostDistance() == 0.0f)
|
||||||
query->visibleDistance = scenemanager->getVisibleGhostDistance();
|
query->visibleDistance = scenemanager->getVisibleGhostDistance();
|
||||||
else
|
else
|
||||||
query->visibleDistance = conn->getVisibleGhostDistance();
|
query->visibleDistance = conn->getVisibleGhostDistance();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue