Add being able to toggle over/fixed-30-FPS, off by default

There is now an option in "graphic options" named "toggle fps", which
toggles whether the game visually runs at 1000/34 FPS or over 1000/34
FPS. It is off by default.

I've had to put the entire game loop in yet another set of braces, I'll
indent it next commit.
This commit is contained in:
Misa
2020-05-04 12:52:57 -07:00
committed by Ethan Lee
parent eaf9eec3dc
commit 7f526f3ef2
5 changed files with 57 additions and 0 deletions

View File

@@ -358,6 +358,12 @@ void menuactionpress()
graphics.showmousecursor = true;
}
break;
case 5:
//toggle 30+ fps
music.playef(11);
game.over30mode = !game.over30mode;
game.savestats();
break;
default:
//back
music.playef(11);