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(); map.checkmap();
if(map.gameover()) if(map.gameover())
break; break;
interval-=0.11; interval-=0.05;
}else{ }
if(!ch or interval<0.1){
# automatically fall one block and check # automatically fall one block and check
map.fall(); map.fall();
map.checkmap(); map.checkmap();