diff options
author | heinz <heinz> | 2002-10-29 19:07:53 +0000 |
---|---|---|
committer | heinz <heinz> | 2002-10-29 19:07:53 +0000 |
commit | 53405ee51bd42e434d62b2b2907d9e17c902fa9c (patch) | |
tree | 2aad704f66ae282143d3ab6c708c49fc9822ff18 /games/rocksndiamonds/patches/patch-ak | |
parent | 215762fe63cde817301b8af5ed8ce20309997a6e (diff) | |
download | pkgsrc-53405ee51bd42e434d62b2b2907d9e17c902fa9c.tar.gz |
Bump package revision to 1. New patch-ak fixes bug in Joystick support
(tested on i386).
Diffstat (limited to 'games/rocksndiamonds/patches/patch-ak')
-rw-r--r-- | games/rocksndiamonds/patches/patch-ak | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/games/rocksndiamonds/patches/patch-ak b/games/rocksndiamonds/patches/patch-ak new file mode 100644 index 00000000000..4d55e67a341 --- /dev/null +++ b/games/rocksndiamonds/patches/patch-ak @@ -0,0 +1,24 @@ +$NetBSD: patch-ak,v 1.1 2002/10/29 19:07:54 heinz Exp $ + +--- src/libgame/system.c.orig Sat Aug 10 15:09:49 2002 ++++ src/libgame/system.c +@@ -874,10 +874,16 @@ + return; /* joysticks generally deactivated by compile-time directive */ + #endif + ++ /* pkgsrc: InitJoystick will be called more than once, so reset ++ * the state variable 'joystick' only if there's no joystick available ++ * (yet). ++ */ + /* always start with reliable default values */ +- joystick.status = JOYSTICK_NOT_AVAILABLE; +- for (i=0; i<MAX_PLAYERS; i++) +- joystick.fd[i] = -1; /* joystick device closed */ ++ if (joystick.status == JOYSTICK_NOT_AVAILABLE) ++ { ++ for (i=0; i<MAX_PLAYERS; i++) ++ joystick.fd[i] = -1; /* joystick device closed */ ++ } + + #if defined(TARGET_SDL) + SDLInitJoysticks(); |