mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-24 04:51:19 +00:00
- prevent message spam with no MIDI devices.
This commit is contained in:
parent
7642c2cdaa
commit
9e0301c1a1
1 changed files with 6 additions and 2 deletions
|
@ -74,8 +74,12 @@ CUSTOM_CVAR (Int, snd_mididevice, -1, CVAR_ARCHIVE|CVAR_GLOBALCONFIG)
|
|||
|
||||
if ((self >= (signed)nummididevices) || (self < -6))
|
||||
{
|
||||
Printf ("ID out of range. Using default device.\n");
|
||||
self = 0;
|
||||
// Don't do repeated message spam if there is no valid device.
|
||||
if (self != 0)
|
||||
{
|
||||
Printf("ID out of range. Using default device.\n");
|
||||
self = 0;
|
||||
}
|
||||
return;
|
||||
}
|
||||
mididevice = MAX<UINT>(0, self);
|
||||
|
|
Loading…
Reference in a new issue