From f64c03e37fb14f82366f81b59ce0e1bdfca79423 Mon Sep 17 00:00:00 2001 From: Mathieu Schroeter Date: Sun, 13 Aug 2017 17:15:38 +0200 Subject: [PATCH] Cosmetic: remove dead code --- src/event.cxx | 15 --------------- src/path.cxx | 6 ++---- 2 files changed, 2 insertions(+), 19 deletions(-) diff --git a/src/event.cxx b/src/event.cxx index 3943d01..a187fa9 100644 --- a/src/event.cxx +++ b/src/event.cxx @@ -1901,21 +1901,6 @@ bool CEvent::DrawButtons () RECT rect; bool bEnable; -//? -#if 0 - pos.x = 1; - pos.y = 1; - rect.left = pos.x; - rect.right = pos.x + 50; - rect.top = pos.y; - rect.bottom = pos.y + DIMLITTLEY; - m_pPixmap->DrawPart (-1, CHBACK, pos, rect, 1); // dessine le fond - time = m_pDecor->GetTotalTime(); - sprintf (text, "time=%d", time); - DrawText (m_pPixmap, pos, text, FONTLITTLE); -#endif - //? - if ( (m_phase == EV_PHASE_PLAY && m_bChangeCheat) || (m_phase != EV_PHASE_PLAY && m_phase != EV_PHASE_INSERT && diff --git a/src/path.cxx b/src/path.cxx index 2c231bc..574debe 100644 --- a/src/path.cxx +++ b/src/path.cxx @@ -179,12 +179,10 @@ void CDecor::CheminFillTerrain (Sint32 rank) m_cheminWork[pos + i * next] = step + cout - ampli + i; m_cheminWork[last] = step + cout; - //? char buffer[50]; - //? sprintf(buffer, "word = %d;%d %d\n", last%200, - // last/200, step+cout); ? OutputDebug(buffer); + dx = m_blupi[rank].goalCel.x - last % MAXCELX; dy = m_blupi[rank].goalCel.y - last / MAXCELX; - //? dist = dy*dy + dx*dx; + dist = (Sint32) (dy * dy) + (Sint32) (dx * dx); fifo.put (last, dist); }