From fbc10e79cdaed5614414fcbcda97adf4a3b4f3e1 Mon Sep 17 00:00:00 2001 From: Paul Date: Tue, 20 Feb 2001 17:37:25 +0000 Subject: [PATCH] --- source/player/player.cpp | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/source/player/player.cpp b/source/player/player.cpp index 842de7137..1daf023b5 100644 --- a/source/player/player.cpp +++ b/source/player/player.cpp @@ -232,6 +232,9 @@ void CPlayer::shutdown() Returns: ---------------------------------------------------------------------- */ int newmode=-1; +#ifdef _STATE_DEBUG_ +char posBuf[100]; +#endif void CPlayer::think(int _frames) { int i; @@ -258,10 +261,8 @@ if(newmode!=-1) thinkVerticalMovement(); thinkHorizontalMovement(); -#ifdef __USER_paul__ -char buf[100]; -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); +#ifdef _STATE_DEBUG_ +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)); #endif @@ -550,6 +551,10 @@ void CPlayer::render() { CThing::render(); +#ifdef _STATE_DEBUG_ +s_debugFont.print(40,40,posBuf); +#endif + // Render if(m_invincibleFrameCount==0||m_invincibleFrameCount&2) {