ReadKey bug
Brought to you by:
realtech
In the configuration file, the line describing the
Joystick button configuration uses a 0 to mean that no
button is assigned to that action.
eg
Joy= 0 0 0 0 0 8 7 1 a 5 6 9 4 3 ...
Unfortunatly ReadKey in lt_info.c ignores the 0s so it
will not overwrite the default configuration with the 0
when it should. That is, for the above example, ReadKey
will return
Joy= 2 0 0 0 0 8 7 1 a 5 6 9 4 3 ...
this patch fixes that.
Logged In: NO
--- old/nogravity/src/lt_info.c 2006-04-15
11:39:28.000000000 +0100
+++ new/nogravity/src/lt_info.c 2006-04-15
11:40:29.000000000 +0100
@@ -77,6 +77,8 @@
table[i]=j;
d++;
}
+ else
+ table[i]=0;
}
}
return d>=LK_MAX-1;
Logged In: NO
--- old/nogravity/src/lt_info.c 2006-04-15
11:39:28.000000000 +0100
+++ new/nogravity/src/lt_info.c 2006-04-15
11:40:29.000000000 +0100
@@ -77,6 +77,8 @@
table[i]=j;
d++;
}
+ else
+ table[i]=0;
}
}
return d>=LK_MAX-1;