Don't allow VideoSyncSpeed to be 0

This commit is contained in:
jsalmon3 2004-03-14 19:26:06 +00:00
parent 260266cf5c
commit 21dea2ff46

View file

@ -505,10 +505,10 @@ local void UiIncreaseGameSpeed(void)
*/
local void UiDecreaseGameSpeed(void)
{
if (VideoSyncSpeed <= 0) {
VideoSyncSpeed = 0;
} else if (VideoSyncSpeed < 11) {
VideoSyncSpeed -= 1;
if (VideoSyncSpeed <= 10) {
if (VideoSyncSpeed > 1) {
--VideoSyncSpeed;
}
} else {
VideoSyncSpeed -= 10;
}