This commit is contained in:
parent
bccc161ff2
commit
de3dd06d85
2 changed files with 4 additions and 3 deletions
|
@ -305,7 +305,8 @@ CNpcPlatform *CNpcPlatform::Create(int Type)
|
|||
|
||||
case NPC_CART_PLATFORM:
|
||||
{
|
||||
platform = new ("cart platform") CNpcCartPlatform;
|
||||
//platform = new ("cart platform") CNpcCartPlatform;
|
||||
platform = new ("ghost train platform") CNpcGhostTrainPlatform;
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
@ -721,10 +721,10 @@ if(newmode!=-1)
|
|||
CThing *platform;
|
||||
platform=isOnPlatform();
|
||||
if(platform)
|
||||
{
|
||||
if ( m_currentMode != PLAYER_MODE_CART && m_currentMode != PLAYER_MODE_DEAD )
|
||||
{
|
||||
if ( ( (CNpcPlatform *) platform )->isCart() )
|
||||
{
|
||||
if ( m_currentMode != PLAYER_MODE_CART && m_currentMode != PLAYER_MODE_DEAD )
|
||||
{
|
||||
setMode( PLAYER_MODE_CART );
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue