Fix timer bug reported by @Calcloverhk

dev
Milang 3 years ago
parent a2754a92fd
commit da4d716878
  1. BIN
      SuperCbr.g1a
  2. BIN
      assets-fx/img/plante.png
  3. 1
      src/levelchanger.c
  4. 5
      src/score.c

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 651 B

@ -274,7 +274,6 @@ int PlayLevel(int w, int l)
{
waitNextFrame();
time_id++;
//marioMove();
worldMove();

@ -107,8 +107,9 @@ void scoreDisplay()
sprintf(str, "c*%d", pieces);
dtext(50,0,str, C_BLACK, C_WHITE);
}
if (time_id%8==0)
if (mario_dead==0 && finish_level==0) time_id++;
if (0==time_id%8)
{
time_left--;
time_spent++;

Loading…
Cancel
Save