This commit is contained in:
parent
26d50aa503
commit
9beaeed67a
7 changed files with 88 additions and 30 deletions
|
@ -83,6 +83,29 @@ void CNpcDualPlatform::setWaypoints( sThingPlatform *ThisPlatform )
|
|||
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
u8 CNpcDualPlatform::canDrop()
|
||||
{
|
||||
if ( m_isMaster )
|
||||
{
|
||||
s32 extensionLeft = m_maxExtension - m_extension;
|
||||
|
||||
if ( extensionLeft == 0 )
|
||||
{
|
||||
return( false );
|
||||
}
|
||||
else
|
||||
{
|
||||
return( true );
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
return( false );
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
void CNpcDualPlatform::processMovement( int _frames )
|
||||
{
|
||||
if ( m_isMaster )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue