X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Fturrets%2Fall.qh;h=9dedc89cb780253a184b45ed3f1dba2da1744d9b;hb=fe92ff1fda9fd8abfe3f0273deef0e3f0e83342e;hp=f87b1a274422cf71a4d4f0df3dcdac942a27d0fc;hpb=934ca973348b7be188bfbdcc90fef7ac37a2cb0f;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/turrets/all.qh b/qcsrc/common/turrets/all.qh index f87b1a274..9dedc89cb 100644 --- a/qcsrc/common/turrets/all.qh +++ b/qcsrc/common/turrets/all.qh @@ -16,7 +16,6 @@ REGISTRY_CHECK(Turrets) P(class, prefix, aim_maxpitch, float) \ P(class, prefix, aim_maxrot, float) \ P(class, prefix, aim_speed, float) \ - P(class, prefix, ammo, float) \ P(class, prefix, ammo_max, float) \ P(class, prefix, ammo_recharge, float) \ P(class, prefix, health, float) \ @@ -48,15 +47,17 @@ REGISTRY_CHECK(Turrets) /**/ #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) {