fix bug in test/tetris.nas

This commit is contained in:
ValKmjolnir 2022-02-25 23:34:02 +08:00
parent 243aafd417
commit 3fac8aa665
1 changed files with 3 additions and 2 deletions

View File

@ -319,8 +319,9 @@ var main=func(){
map.checkmap();
if(map.gameover())
break;
interval-=0.11;
}else{
interval-=0.05;
}
if(!ch or interval<0.1){
# automatically fall one block and check
map.fall();
map.checkmap();