Add classname for panel entities
authorSamual Lenks <samual@xonotic.org>
Sun, 28 Apr 2013 23:48:41 +0000 (19:48 -0400)
committerSamual Lenks <samual@xonotic.org>
Sun, 28 Apr 2013 23:48:41 +0000 (19:48 -0400)
qcsrc/client/hud.qh

index 4d52c28c630d31f91b279968196b2966b4c7837c..28314884d6422f186e88c300c0c1f7e275c7dbbe 100644 (file)
@@ -124,6 +124,7 @@ float current_player;
                HUD_PANEL_LAST = HUD_PANEL_##NAME = HUD_PANEL_NUM; \
                entity hud_panelent = spawn(); \
                hud_panel[HUD_PANEL_##NAME] = hud_panelent; \
+               hud_panelent.classname = "hud_panel"; \
                hud_panelent.panel_name = #name; \
                hud_panelent.panel_id = HUD_PANEL_##NAME; \
                hud_panelent.panel_draw = ##draw_func; \