void UI_UpdateUnlockables() { char buffer[MAX_TOKEN_CHARS]; team_t team; int mask; trap_Cvar_VariableStringBuffer("ui_unlockables", buffer, sizeof(buffer)); sscanf(buffer, "%d %d", (int*) &team, &mask); BG_ImportUnlockablesFromMask(team, mask); }
void CG_UpdateUnlockables( playerState_t *ps ) { BG_ImportUnlockablesFromMask( ps->persistant[ PERS_TEAM ], ps->persistant[ PERS_UNLOCKABLES ] ); }