Optimize team color loading a bit
[xonotic/xonotic-data.pk3dir.git] / qcsrc / client / View.qc
index e7e7f9059509ba46139c54a3230ec9801bb3cea6..547f90268ec14904bf71cda677bf4dc248fcf367 100644 (file)
@@ -445,6 +445,7 @@ void CSQC_UpdateView(float w, float h)
 
        if(myteam != prev_myteam)
        {
+               myteamcolors = colormapPaletteColor(myteam, 1);
                for(i = 0; i < HUD_PANEL_NUM; ++i)
                        hud_panel[i].update_time = time;
                prev_myteam = myteam;