X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fcommon%2Futil.qh;h=cfb955e3566cb44d576ab6b09963eed1fe79c1b2;hp=f2c2e6702ab99389b17a24227f57258860232215;hb=3dc45de9e7ca647cdf10ec7aa422805b2e38d74d;hpb=992529cda6e328df91113b580eae2f1b3ef0cdfd diff --git a/qcsrc/common/util.qh b/qcsrc/common/util.qh index f2c2e6702..cfb955e35 100644 --- a/qcsrc/common/util.qh +++ b/qcsrc/common/util.qh @@ -1,3 +1,6 @@ +// a dummy macro that prevents the "hanging ;" warning +#define ENDS_WITH_CURLY_BRACE + #define ACCUMULATE_FUNCTION(func,otherfunc) \ #ifdef func \ void __merge__##otherfunc() { func(); otherfunc(); } \ @@ -162,7 +165,7 @@ void check_unacceptable_compiler_bugs(); float compressShotOrigin(vector v); vector decompressShotOrigin(float f); -string rankings_reply, lsmaps_reply, lsnewmaps_reply, maplist_reply; // cached replies +string rankings_reply, ladder_reply, lsmaps_reply, lsnewmaps_reply, maplist_reply; // cached replies string records_reply[10]; float RandomSelection_totalweight; @@ -216,7 +219,7 @@ float get_model_parameters(string mod, float skn); // call with string_null to c switch(id) {\ case HUD_PANEL_ENGINEINFO: panel_name = HUD_PANELNAME_ENGINEINFO; break; \ case HUD_PANEL_INFOMESSAGES: panel_name = HUD_PANELNAME_INFOMESSAGES; break; \ -} +} ENDS_WITH_CURLY_BRACE // Get name of specified panel id #define HUD_Panel_GetName(id) \ @@ -236,3 +239,11 @@ switch(id) { \ case HUD_PANEL_CHAT: panel_name = HUD_PANELNAME_CHAT; break; \ }\ HUD_Panel_GetName_Part2(id) + +vector vec2(vector v); + +#ifndef MENUQC +vector NearestPointOnBox(entity box, vector org); +#endif + +float vercmp(string v1, string v2);