This commit is contained in:
parent
533b3f302d
commit
860ac1b790
1 changed files with 3 additions and 3 deletions
|
@ -219,6 +219,8 @@ void CNpcEnemy::setStartPos( s32 xPos, s32 yPos )
|
||||||
{
|
{
|
||||||
Pos.vx = xPos << 4;
|
Pos.vx = xPos << 4;
|
||||||
Pos.vy = yPos << 4;
|
Pos.vy = yPos << 4;
|
||||||
|
|
||||||
|
m_base = Pos;
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
@ -246,8 +248,6 @@ void CNpcEnemy::init()
|
||||||
|
|
||||||
m_extendDir = EXTEND_RIGHT;
|
m_extendDir = EXTEND_RIGHT;
|
||||||
|
|
||||||
m_base = Pos;
|
|
||||||
|
|
||||||
m_timerFunc = m_data[this->m_type].timerFunc;
|
m_timerFunc = m_data[this->m_type].timerFunc;
|
||||||
m_sensorFunc = m_data[this->m_type].sensorFunc;
|
m_sensorFunc = m_data[this->m_type].sensorFunc;
|
||||||
|
|
||||||
|
@ -1335,7 +1335,7 @@ void CNpcEnemy::render()
|
||||||
//renderPos.vy = ( Pos.vy + m_drawOffset.vy - offset.vy - ( VidGetScrH() >> 1 ) );// * 20;
|
//renderPos.vy = ( Pos.vy + m_drawOffset.vy - offset.vy - ( VidGetScrH() >> 1 ) );// * 20;
|
||||||
|
|
||||||
renderPos.vx = Pos.vx - offset.vx;
|
renderPos.vx = Pos.vx - offset.vx;
|
||||||
renderPos.vy = Pos.vy - offset.vy - 100;
|
renderPos.vy = Pos.vy - offset.vy;
|
||||||
|
|
||||||
m_actorGfx->Render(renderPos,m_animNo,m_frame,m_reversed);
|
m_actorGfx->Render(renderPos,m_animNo,m_frame,m_reversed);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue