This commit is contained in:
parent
2237dbd79b
commit
254aa99695
@ -355,7 +355,7 @@ CNpcEnemy::NPC_DATA CNpcEnemy::m_data[NPC_UNIT_TYPE_MAX] =
|
||||
NPC_CLOSE_NONE,
|
||||
NPC_TIMER_NONE,
|
||||
false,
|
||||
2,
|
||||
3,
|
||||
2048,
|
||||
DETECT_ALL_COLLISION,
|
||||
DAMAGE__HIT_ENEMY,
|
||||
|
@ -24,6 +24,7 @@ public:
|
||||
virtual void postInit();
|
||||
void render();
|
||||
CRECT const *getThinkBBox();
|
||||
bool alwaysThink() {return(false);}
|
||||
protected:
|
||||
void processLifetime( int _frames );
|
||||
void processMovement( int _frames );
|
||||
|
@ -1381,5 +1381,15 @@ bool CNpcPlatform::alwaysThink()
|
||||
int chapter=GameScene.getChapterNumber();
|
||||
int level=GameScene.getLevelNumber();
|
||||
|
||||
return( chapter == 1 && level == 5 );
|
||||
if ( chapter == 1 )
|
||||
{
|
||||
if ( level == 5 )
|
||||
{
|
||||
return( true );
|
||||
}
|
||||
}
|
||||
|
||||
return( false );
|
||||
|
||||
//return( ( chapter == 1 ) && ( level == 5 ) );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user