X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fclient%2Fmain.qh;h=b8823e6296d4de67aed98f1f2da417aa00ff0381;hb=a73fbc14c8aff7f43b68101cb35b1b1434dea65b;hp=8b6cbac12bcb711890cbc989fd5c1d38b288bdd2;hpb=845401fd312c66c059aaee1772ac5d79555ab4fc;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/client/main.qh b/qcsrc/client/main.qh index 8b6cbac12..b8823e629 100644 --- a/qcsrc/client/main.qh +++ b/qcsrc/client/main.qh @@ -1,3 +1,6 @@ +#ifndef MAIN_H +#define MAIN_H + // -------------------------------------------------------------------------- // MENU Functionality @@ -27,7 +30,6 @@ string minimapname; // -------------------------------------------------------------------------- // General stuff -float drawfont; float postinit; float gametype; @@ -38,25 +40,24 @@ float gametype; //.float ctf_state; //.float health; -float FONT_DEFAULT = 0; float FONT_USER = 8; // -------------------------------------------------------------------------- // Scoreboard stuff -const float MAX_HUD_FIELDS = 16; +const int MAX_HUD_FIELDS = 16; -const float SP_END = -1; +const int SP_END = -1; -const float SP_PING = -2; -const float SP_NAME = -3; -const float SP_KDRATIO = -4; -const float SP_CLRATIO = -5; -const float SP_PL = -6; -const float SP_FRAGS = -7; -const float SP_SUM = -8; +const int SP_PING = -2; +const int SP_NAME = -3; +const int SP_KDRATIO = -4; +const int SP_CLRATIO = -5; +const int SP_PL = -6; +const int SP_FRAGS = -7; +const int SP_SUM = -8; -const float SP_SEPARATOR = -100; +const int SP_SEPARATOR = -100; float hud_field[MAX_HUD_FIELDS + 1]; float hud_size[MAX_HUD_FIELDS + 1]; @@ -92,15 +93,15 @@ entity teamslots[17]; // 17 teams (including "spectator team") .void(void) draw2d; .void(void) entremove; float drawframetime; -vector view_origin, view_angles, view_forward, view_right, view_up; +vector view_origin, view_forward, view_right, view_up; float button_zoom; float spectatorbutton_zoom; float button_attack2; -float activeweapon; -float switchingweapon; -float switchweapon; +int activeweapon; +int switchingweapon; +int switchweapon; float current_viewzoom; float zoomin_effect; float warmup_stage; @@ -147,4 +148,5 @@ entity entcs_receiver[255]; // 255 is the engine limit on maxclients float hud; float view_quality; -float framecount; +int framecount; +#endif