This commit is contained in:
Charles 2001-07-16 20:25:19 +00:00
parent bccc161ff2
commit de3dd06d85
2 changed files with 4 additions and 3 deletions

View File

@ -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;
}

View File

@ -722,9 +722,9 @@ if(newmode!=-1)
platform=isOnPlatform();
if(platform)
{
if ( m_currentMode != PLAYER_MODE_CART && m_currentMode != PLAYER_MODE_DEAD )
if ( ( (CNpcPlatform *) platform )->isCart() )
{
if ( ( (CNpcPlatform *) platform )->isCart() )
if ( m_currentMode != PLAYER_MODE_CART && m_currentMode != PLAYER_MODE_DEAD )
{
setMode( PLAYER_MODE_CART );
}