mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-26 10:03:48 +00:00
fix for join server with bots crash
This commit is contained in:
parent
2bbc07ebf1
commit
75b7348cd6
1 changed files with 3 additions and 3 deletions
|
|
@ -3377,10 +3377,10 @@ void ShapeBase::shakeCamera( U32 imageSlot )
|
|||
// first check if explosion is near camera
|
||||
GameConnection* connection = GameConnection::getConnectionToServer();
|
||||
ShapeBase *obj = dynamic_cast<ShapeBase*>(connection->getControlObject());
|
||||
|
||||
|
||||
bool applyShake = true;
|
||||
|
||||
if (obj)
|
||||
if (obj && !mIsAiControlled)
|
||||
{
|
||||
ShapeBase* cObj = obj;
|
||||
while ((cObj = cObj->getControlObject()) != 0)
|
||||
|
|
@ -3393,7 +3393,7 @@ void ShapeBase::shakeCamera( U32 imageSlot )
|
|||
}
|
||||
}
|
||||
|
||||
if (applyShake && obj)
|
||||
if (applyShake && obj && !mIsAiControlled)
|
||||
{
|
||||
VectorF diff;
|
||||
getMuzzlePoint(imageSlot, &diff);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue