What is this block supposed to do in zc_sys.cpp:

Code:
bool b[joy[joystick_index].num_buttons+1];
    
for(int i=1; i<=joy[joystick_index].num_buttons; i++)
    b[i]=joybtn(i);
First, this is not legal C++ since the array size is not a constant expression.

Second, it seems like the block is dead code anyway since b is never read anywhere later in the function.