Mount Process Order Fix 1

Added a controlling object check to GameBase::onMount() so mounted objects will process after objects controlling them.
This commit is contained in:
OTHGMars 2014-06-09 14:58:45 -04:00 committed by Azaezel
parent ca4e4fe86d
commit 8250e4728d

View file

@ -590,7 +590,7 @@ void GameBase::onMount( SceneObject *obj, S32 node )
// Are we mounting to a GameBase object?
GameBase *gbaseObj = dynamic_cast<GameBase*>( obj );
if ( gbaseObj && gbaseObj->getControlObject() != this )
if ( gbaseObj && gbaseObj->getControlObject() != this && gbaseObj->getControllingObject() != this)
processAfter( gbaseObj );
if (!isGhost()) {