SpawnSphere Mounting

This commit is contained in:
OTHGMars 2014-06-16 20:53:10 -04:00 committed by Azaezel
parent 3afd5461c6
commit a285b7b07b

View file

@ -442,22 +442,12 @@ void SpawnSphere::unpackUpdate(NetConnection * con, BitStream * stream)
void SpawnSphere::processTick( const Move *move )
{
if ( isServerObject() && isMounted() )
{
MatrixF mat( true );
mMount.object->getRenderMountTransform( 0.f, mMount.node, mMount.xfm, &mat );
setTransform( mat );
}
Parent::processTick( move );
}
void SpawnSphere::advanceTime( F32 timeDelta )
{
if ( isMounted() )
{
MatrixF mat( true );
mMount.object->getRenderMountTransform( 0.f, mMount.node, mMount.xfm, &mat );
setTransform( mat );
}
Parent::advanceTime( timeDelta );
}
void SpawnSphere::initPersistFields()