X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fmiscfunctions.qh;h=4a6829a74306df60412c366ab5e3a08eaf3e9959;hb=3f397e7bd1b2f66ebd246c8fa7a23256eedcbda7;hp=4cb4e20b33b1537d041a6c3db75bd937c2bc5c7a;hpb=f41d9f31538bef0259d2b2c74536bb977901f99d;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/miscfunctions.qh b/qcsrc/server/miscfunctions.qh index 4cb4e20b3..4a6829a74 100644 --- a/qcsrc/server/miscfunctions.qh +++ b/qcsrc/server/miscfunctions.qh @@ -1,13 +1,12 @@ -#ifndef MISCFUNCTIONS_H -#define MISCFUNCTIONS_H +#pragma once -#include "../common/t_items.qh" +#include #include "mutators/events.qh" -#include "../common/constants.qh" -#include "../common/mapinfo.qh" -#include "../common/turrets/all.qh" +#include +#include +#include #ifdef RELEASE #define cvar_string_normal builtin_cvar_string @@ -133,13 +132,12 @@ string strcat1(string s) = #115; // FRIK_FILE float logfile_open; float logfile; -#define strstr strstrofs /* // NOTE: DO NOT USE THIS FUNCTION TOO OFTEN. // IT WILL MOST PROBABLY DESTROY _ALL_ OTHER TEMP // STRINGS AND TAKE QUITE LONG. haystack and needle MUST // BE CONSTANT OR strzoneD! -float strstr(string haystack, string needle, float offset) +float strstrofs(string haystack, string needle, float offset) { float len, endpos; string found; @@ -369,5 +367,3 @@ entity initialize_entity_first; float sound_allowed(float dest, entity e); void InitializeEntity(entity e, void() func, float order); void SetCustomizer(entity e, float() customizer, void() uncustomizer); - -#endif