1
0
mirror of https://github.com/blupi-games/planetblupi synced 2024-12-30 10:15:36 +01:00

Cosmetic: remove dead code

This commit is contained in:
Mathieu Schroeter 2017-08-13 17:15:38 +02:00
parent b4c5f62dcf
commit f64c03e37f
2 changed files with 2 additions and 19 deletions

View File

@ -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 &&

View File

@ -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);
}