X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Futil.qh;h=c9f1f49f418aeff4d97f012b6e9b3a8f220fbc49;hb=834cfa56a90d416e6a4bbdcdbc4fc37603893f29;hp=faa605f887598c0dba17c7a6d5ae99654eb8e409;hpb=1598454bfcd2651b16f34f7fc237e1c51fd377d2;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/util.qh b/qcsrc/common/util.qh index faa605f88..c9f1f49f4 100644 --- a/qcsrc/common/util.qh +++ b/qcsrc/common/util.qh @@ -45,7 +45,7 @@ string wordwrap(string s, float l); void wordwrap_sprint(string s, float l); #endif #endif -void wordwrap_cb(string s, float l, void(string) callback) +void wordwrap_cb(string s, float l, void(string) callback); #ifndef SVQC string draw_currentSkin; @@ -140,8 +140,6 @@ vector mi_pictexcoord3; // texcoords of the image corners (after transforming, t void get_mi_min_max_texcoords(float mode); #endif -#define FTEQCC_YOU_SUCK_THIS_IS_NOT_UNREFERENCED(x) void reference_##x() { x = x; } - float almost_equals(float a, float b); float almost_in_bounds(float a, float b, float c); @@ -226,8 +224,8 @@ void WriteInt24_t(float dest, float val); #endif // the NULL function -const var void func_null(void); FTEQCC_YOU_SUCK_THIS_IS_NOT_UNREFERENCED(func_null) -const var string string_null; +var void func_null(void); +var string string_null; float float2range11(float f); float float2range01(float f); @@ -308,7 +306,7 @@ float xdecode(string s); float lowestbit(float f); #ifdef CSQC -entity ReadCSQCEntity() +entity ReadCSQCEntity(); #endif #ifndef MENUQC @@ -361,3 +359,9 @@ float cubic_speedfunc_is_sane(float startspeedfactor, float endspeedfactor); typedef entity(entity cur, entity near, entity pass) findNextEntityNearFunction_t; typedef float(entity a, entity b, entity pass) isConnectedFunction_t; void FindConnectedComponent(entity e, .entity fld, findNextEntityNearFunction_t nxt, isConnectedFunction_t iscon, entity pass); + +vector vec3(float x, float y, float z); + +#ifndef MENUQC +vector animfixfps(entity e, vector a, vector b); +#endif