This commit is contained in:
parent
46bdacf5f4
commit
fbc10e79cd
1 changed files with 9 additions and 4 deletions
|
@ -232,6 +232,9 @@ void CPlayer::shutdown()
|
||||||
Returns:
|
Returns:
|
||||||
---------------------------------------------------------------------- */
|
---------------------------------------------------------------------- */
|
||||||
int newmode=-1;
|
int newmode=-1;
|
||||||
|
#ifdef _STATE_DEBUG_
|
||||||
|
char posBuf[100];
|
||||||
|
#endif
|
||||||
void CPlayer::think(int _frames)
|
void CPlayer::think(int _frames)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
@ -258,10 +261,8 @@ if(newmode!=-1)
|
||||||
thinkVerticalMovement();
|
thinkVerticalMovement();
|
||||||
thinkHorizontalMovement();
|
thinkHorizontalMovement();
|
||||||
|
|
||||||
#ifdef __USER_paul__
|
#ifdef _STATE_DEBUG_
|
||||||
char buf[100];
|
sprintf(posBuf,"%03d (%02d) ,%03d (%02d) = dfg:%+02d",Pos.vx,Pos.vx&0x0f,Pos.vy,Pos.vy&0x0f,m_layerCollision->getHeightFromGround(Pos.vx,Pos.vy));
|
||||||
sprintf(buf,"%03d (%02d) ,%03d (%02d) = dfg:%+02d",Pos.vx,Pos.vx&0x0f,Pos.vy,Pos.vy&0x0f,m_layerCollision->getHeightFromGround(Pos.vx,Pos.vy));
|
|
||||||
s_debugFont.print(40,40,buf);
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
@ -550,6 +551,10 @@ void CPlayer::render()
|
||||||
{
|
{
|
||||||
CThing::render();
|
CThing::render();
|
||||||
|
|
||||||
|
#ifdef _STATE_DEBUG_
|
||||||
|
s_debugFont.print(40,40,posBuf);
|
||||||
|
#endif
|
||||||
|
|
||||||
// Render
|
// Render
|
||||||
if(m_invincibleFrameCount==0||m_invincibleFrameCount&2)
|
if(m_invincibleFrameCount==0||m_invincibleFrameCount&2)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue