Fix timer bug reported by @Calcloverhk
This commit is contained in:
parent
a2754a92fd
commit
da4d716878
BIN
SuperCbr.g1a
BIN
SuperCbr.g1a
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…
Reference in New Issue