This commit is contained in:
parent
2237dbd79b
commit
254aa99695
3 changed files with 13 additions and 2 deletions
|
@ -355,7 +355,7 @@ CNpcEnemy::NPC_DATA CNpcEnemy::m_data[NPC_UNIT_TYPE_MAX] =
|
||||||
NPC_CLOSE_NONE,
|
NPC_CLOSE_NONE,
|
||||||
NPC_TIMER_NONE,
|
NPC_TIMER_NONE,
|
||||||
false,
|
false,
|
||||||
2,
|
3,
|
||||||
2048,
|
2048,
|
||||||
DETECT_ALL_COLLISION,
|
DETECT_ALL_COLLISION,
|
||||||
DAMAGE__HIT_ENEMY,
|
DAMAGE__HIT_ENEMY,
|
||||||
|
|
|
@ -24,6 +24,7 @@ public:
|
||||||
virtual void postInit();
|
virtual void postInit();
|
||||||
void render();
|
void render();
|
||||||
CRECT const *getThinkBBox();
|
CRECT const *getThinkBBox();
|
||||||
|
bool alwaysThink() {return(false);}
|
||||||
protected:
|
protected:
|
||||||
void processLifetime( int _frames );
|
void processLifetime( int _frames );
|
||||||
void processMovement( int _frames );
|
void processMovement( int _frames );
|
||||||
|
|
|
@ -1381,5 +1381,15 @@ bool CNpcPlatform::alwaysThink()
|
||||||
int chapter=GameScene.getChapterNumber();
|
int chapter=GameScene.getChapterNumber();
|
||||||
int level=GameScene.getLevelNumber();
|
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…
Add table
Reference in a new issue