mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-26 06:20:48 +00:00
Haptic: skip clean of slots without configured haptic
This commit is contained in:
parent
db83143b47
commit
37344b5330
1 changed files with 6 additions and 0 deletions
|
@ -1768,6 +1768,12 @@ Controller_Rumble(const char *name, vec3_t source, qboolean from_player,
|
|||
#if SDL_VERSION_ATLEAST(2, 0, 9)
|
||||
if (SDL_GameControllerRumble(controller, low_freq, hi_freq, duration) == -1)
|
||||
{
|
||||
if (!joystick_haptic)
|
||||
{
|
||||
/* no haptic, some other reason of error */
|
||||
return;
|
||||
}
|
||||
|
||||
/* All haptic/force feedback slots are busy, try to clean up little bit. */
|
||||
IN_Haptic_Effects_Shutdown();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue