X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fclient%2Fhud%2Fpanel%2Fpowerups.qc;h=223bf72ce8efae4a679f8c6405673deaf1aac283;hb=61d746760851b92ea6124dcc179c0f5178b62169;hp=854ed594a0de49904ab2544f501ec23ff4ce916e;hpb=91d607d78b9933c0823ba763f90e679db253d1cf;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/client/hud/panel/powerups.qc b/qcsrc/client/hud/panel/powerups.qc index 854ed594a..223bf72ce 100644 --- a/qcsrc/client/hud/panel/powerups.qc +++ b/qcsrc/client/hud/panel/powerups.qc @@ -1,3 +1,7 @@ +#include "powerups.qh" + +#include + // Powerups (#2) // Powerup item fields (reusing existing fields) @@ -40,6 +44,7 @@ void addPowerupItem(string name, string icon, vector color, float currentTime, f int getPowerupItemAlign(int align, int column, int row, int columns, int rows, bool isVertical) { + TC(int, align); TC(int, column); TC(int, row); TC(int, columns); TC(int, rows); TC(bool, isVertical); if(align < 2) return align; @@ -104,6 +109,10 @@ void HUD_Powerups() // Draw panel background HUD_Panel_UpdateCvars(); + if (autocvar_hud_panel_powerups_dynamichud) + HUD_Scale_Enable(); + else + HUD_Scale_Disable(); HUD_Panel_DrawBg(1); // Set drawing area