#pragma once
#ifdef SVQC
+// ==========================
+// Balance Config Generator
+// ==========================
void Dump_Turret_Settings();
float tur_config_file;
float tur_config_alsoprint;
float TUR_CONFIG_COUNT;
-#define TUR_CONFIG_QUEUE(a) { \
- config_queue[TUR_CONFIG_COUNT] = a; \
- ++TUR_CONFIG_COUNT; }
+#define TUR_CONFIG_QUEUE(a) config_queue[TUR_CONFIG_COUNT++] = a;
#define TUR_CONFIG_WRITE_CVARS(turname, name, T) TUR_CONFIG_WRITE_PROPS_##T(turname, name)
it.m_name,
((it.spawnflags & WEP_FLAG_MUTATORBLOCKED) ? " (MUTATOR WEAPON)" : "")
));
- for (int x = 0; x <= WEP_CONFIG_COUNT; ++x) { WEP_CONFIG_WRITETOFILE(config_queue[x]); }
+ for (int x = 0; x <= WEP_CONFIG_COUNT; ++x)
+ WEP_CONFIG_WRITETOFILE(config_queue[x]);
WEP_CONFIG_WRITETOFILE("// }}}\n");
// step 5: debug info
bool wep_config_alsoprint;
int WEP_CONFIG_COUNT;
-#define WEP_CONFIG_QUEUE(a) { \
- config_queue[WEP_CONFIG_COUNT] = a; \
- ++WEP_CONFIG_COUNT; }
-
+#define WEP_CONFIG_QUEUE(a) config_queue[WEP_CONFIG_COUNT++] = a;
#define WEP_CONFIG_WRITE_CVARS(wepname, name, T) WEP_CONFIG_WRITE_PROPS_##T(wepname, name)