X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Futil.qh;h=2e41ce76ca796a1868b06085ff6dc197e06e7c86;hb=a11e3217808e6c8f2c971401ba2bcc43578832b1;hp=4de610f26fcc2113587a64019db6b55fb71ae647;hpb=e3507f4fdbc2b3e15b663365e57e0aa60f3cf1a6;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/util.qh b/qcsrc/common/util.qh index 4de610f26..2e41ce76c 100644 --- a/qcsrc/common/util.qh +++ b/qcsrc/common/util.qh @@ -109,9 +109,6 @@ const float TIME_FACTOR = 100; string ScoreString(float vflags, float value); -float dotproduct(vector a, vector b); -vector cross(vector a, vector b); - void compressShortVector_init(); vector decompressShortVector(float data); float compressShortVector(vector vec); @@ -217,8 +214,8 @@ void RandomSelection_Init(); void RandomSelection_Add(entity e, float f, string s, float weight, float priority); #ifndef MENUQC -vector healtharmor_maxdamage(float h, float a, float armorblock, float deathtype); // returns vector: maxdamage, armorideal, 1 if fully armored -vector healtharmor_applydamage(float a, float armorblock, float deathtype, float damage); // returns vector: take, save, 0 +vector healtharmor_maxdamage(float h, float a, float armorblock, int deathtype); // returns vector: maxdamage, armorideal, 1 if fully armored +vector healtharmor_applydamage(float a, float armorblock, int deathtype, float damage); // returns vector: take, save, 0 #endif string getcurrentmod(); @@ -299,7 +296,7 @@ float xdecode(string s); // Otherwise, channels 8 to 15 would be blocked for a weird QW feature. #define sound(e,c,s,v,a) sound7(e,c,s,v,a,0,0) -float lowestbit(float f); +int lowestbit(float f); #ifdef CSQC entity ReadCSQCEntity(); @@ -388,12 +385,12 @@ string autocvar_hud_colorset_background = "7"; // BG - White // neutral/unimport string CCR(string input); #ifndef MENUQC -#ifdef CSQC -#define GENTLE (autocvar_cl_gentle || autocvar_cl_gentle_messages) -#else -#define GENTLE autocvar_sv_gentle -#endif -#define normal_or_gentle(normal,gentle) (GENTLE ? ((gentle != "") ? gentle : normal) : normal) + #ifdef CSQC + #define GENTLE (autocvar_cl_gentle || autocvar_cl_gentle_messages) + #else + #define GENTLE autocvar_sv_gentle + #endif + #define normal_or_gentle(normal, gentle) (GENTLE ? ((gentle != "") ? gentle : normal) : normal) #endif // allow writing to also pass through to spectators (like so spectators see the same centerprints as players for example)