This commit is contained in:
parent
5b785068c2
commit
fa5105d783
96 changed files with 550 additions and 406 deletions
|
@ -169,9 +169,11 @@ CNpcPlatform *CNpcPlatform::Create(sThingPlatform *ThisPlatform)
|
|||
{
|
||||
CNpcPlatform *platform;
|
||||
|
||||
NPC_PLATFORM_UNIT_TYPE platformType = getTypeFromMapEdit( ThisPlatform->Type );
|
||||
NPC_PLATFORM_UNIT_TYPE Type = getTypeFromMapEdit( ThisPlatform->Type );
|
||||
|
||||
switch( platformType )
|
||||
platform = (CNpcPlatform*)CThingManager::GetThing(CThing::TYPE_PLATFORM,Type);
|
||||
if (!platform)
|
||||
switch( Type )
|
||||
{
|
||||
case NPC_LINEAR_PLATFORM:
|
||||
{
|
||||
|
@ -271,7 +273,7 @@ CNpcPlatform *CNpcPlatform::Create(sThingPlatform *ThisPlatform)
|
|||
dualPlatformMaster->setOtherPlatform( dualPlatformSlave );
|
||||
dualPlatformSlave->setOtherPlatform( dualPlatformMaster );
|
||||
|
||||
dualPlatformSlave->setType( platformType );
|
||||
dualPlatformSlave->setType( Type );
|
||||
dualPlatformSlave->setGraphic( ThisPlatform );
|
||||
dualPlatformSlave->setTiltable( false );
|
||||
|
||||
|
@ -383,7 +385,8 @@ CNpcPlatform *CNpcPlatform::Create(sThingPlatform *ThisPlatform)
|
|||
}
|
||||
|
||||
ASSERT(platform);
|
||||
platform->setType( platformType );
|
||||
platform->setType( Type );
|
||||
platform->setThingSubType( Type );
|
||||
platform->setGraphic( ThisPlatform );
|
||||
|
||||
platform->setWaypoints( ThisPlatform );
|
||||
|
@ -471,8 +474,6 @@ void CNpcPlatform::init()
|
|||
m_tiltable = false;
|
||||
m_initRotation = 0;
|
||||
|
||||
m_layerCollision = NULL;
|
||||
|
||||
m_lifetime = 0;
|
||||
m_lifetimeType = m_data[m_type].lifetimeType;
|
||||
|
||||
|
@ -664,7 +665,8 @@ void CNpcPlatform::think(int _frames)
|
|||
|
||||
void CNpcPlatform::setCollisionAngle(int newAngle)
|
||||
{
|
||||
CPlatformThing::setCollisionAngle(newAngle);
|
||||
m_collisionAngle=newAngle;
|
||||
// CPlatformThing::setCollisionAngle(newAngle);
|
||||
calculateBoundingBoxSize();
|
||||
|
||||
CPlayer *player;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue