예제 #1
0
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);
}
예제 #2
0
void CG_UpdateUnlockables( playerState_t *ps )
{
	BG_ImportUnlockablesFromMask( ps->persistant[ PERS_TEAM ], ps->persistant[ PERS_UNLOCKABLES ] );
}