Fix timer bug reported by @Calcloverhk

This commit is contained in:
Milang 2020-02-20 15:45:41 +01:00
parent a2754a92fd
commit da4d716878
4 changed files with 3 additions and 3 deletions

Binary file not shown.

BIN
assets-fx/img/plante.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 651 B

View File

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

View File

@ -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++;