Don't allow VideoSyncSpeed to be 0
This commit is contained in:
parent
260266cf5c
commit
21dea2ff46
1 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue