You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
staticbool:gIsWeaponAllowed[MAX_WEAPONS] = {true, ...};
publicOnGameModeInit()
{
for (new i =0; i <sizeof gIsWeaponAllowed; i++)
{
printf("%d: %d", i, gIsWeaponAllowed[WEAPON:i]);
}
return1;
}
One would expect that all slots would be initialized to true, but only the first slot gets set.
seems to remedy this problem and still allows the array to be indexed properly with the WEAPON_ definitions. This will probably need to be added for all tagged MAX_ definitions.
Activity