/**/
#define TR_CONFIG(class, turname, fld, T) _TR_CONFIG(class, fld, T, turname)
-#define TR_CONFIG_BEGIN(class) METHOD(class, tr_config, void(class this)) {
- #ifdef SVQC
+#ifdef SVQC
+ #define TR_CONFIG_BEGIN(class) METHOD(class, tr_config, void(class this)) {
#define _TR_CONFIG(class, fld, T, turname) if (#turname == this.netname) TUR_CONFIG_WRITE_CVARS(turname, fld, T);
- #else
+ #define TR_CONFIG_END() }
+#else
+ #define TR_CONFIG_BEGIN(class)
#define _TR_CONFIG(class, fld, T, turname)
- #endif
-#define TR_CONFIG_END() }
+ #define TR_CONFIG_END()
+#endif
-GENERIC_COMMAND(dumpturrets, "Dump all turrets into turrets_dump.txt")
+GENERIC_COMMAND(dumpturrets, "Dump all turrets into turrets_dump.txt", false)
{
switch(request)
{
const int TUR_FIRST = 1;
-#define TUR_LAST (Turrets_COUNT - 1)
+#define TUR_LAST (REGISTRY_COUNT(Turrets) - 1)
#define REGISTER_TURRET(id, inst) REGISTER(Turrets, TUR, id, m_id, inst)