[AD] Joystick bug in 4.9

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


The directx joystick seems broken in the 4.9 branch. I fixed it by changing line 536 in wjoydxnu.c from

ASSERT(joydx_num_joysticks > 0 && joydx_num_joysticks < MAX_JOYSTICKS-1);

to:

ASSERT(joydx_num_joysticks >= 0 && joydx_num_joysticks < MAX_JOYSTICKS-1);


I just wanted to know if this makes sense to whoever (Peter?) wrote this before I commit it.




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/