X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Fturrets%2Fconfig.qh;h=ac09e9e37248f3f5320a1df3267f758820140126;hb=0bd99205bd154e058edc6b82995d24e3375f5f97;hp=9eb69f29dd54fa804b86e94e2456e453e4dce94c;hpb=86c9dc7c3696c329496b06375c1e79fb407401ce;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/turrets/config.qh b/qcsrc/common/turrets/config.qh index 9eb69f29d..ac09e9e37 100644 --- a/qcsrc/common/turrets/config.qh +++ b/qcsrc/common/turrets/config.qh @@ -1,34 +1,15 @@ -#ifndef TURRETS_CONFIG_H -#define TURRETS_CONFIG_H +#pragma once #ifdef SVQC -void Dump_Turret_Settings(void); +void Dump_Turret_Settings(); float tur_config_file; float tur_config_alsoprint; -#define MAX_TUR_CONFIG 256 float TUR_CONFIG_COUNT; -string tur_config_queue[MAX_TUR_CONFIG]; - -#define TUR_CONFIG_QUEUE(a) { \ - tur_config_queue[TUR_CONFIG_COUNT] = a; \ - ++TUR_CONFIG_COUNT; } - #define TUR_CONFIG_WRITETOFILE(a) { \ fputs(tur_config_file, a); \ if(tur_config_alsoprint) { LOG_INFO(a); } } -#define TUR_CONFIG_WRITE_CVARS(turret,name) \ - { TUR_CONFIG_QUEUE( \ - sprintf("set g_turrets_unit_%s_%s %g\n", #turret, #name, \ - cvar(sprintf("g_turrets_unit_%s_%s", #turret, #name)))) } \ - -#define TUR_CONFIG_SETTINGS(tursettings) \ - #define TUR_ADD_CVAR(turret,name) TUR_CONFIG_WRITE_CVARS(turret,name) \ - tursettings \ - #undef TUR_ADD_CVAR - -#endif #endif