mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +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
|
|
@ -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