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.
The text was updated successfully, but these errors were encountered:
Consider following snippet:
One would expect that all slots would be initialized to
true
, but only the first slot gets set.Adding an additional
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 taggedMAX_
definitions.The text was updated successfully, but these errors were encountered: