spawnfunc(name) { weapon_defaultspawnfunc(this, weapon); }
#define SPAWNFUNC_WEAPON_COND(name, cond, wep1, wep2) \
- spawnfunc(name) \
- { \
- entity wep = (cond) ? wep1 : wep2; \
- weapon_defaultspawnfunc(this, wep); \
- }
+ SPAWNFUNC_WEAPON(name, (cond ? wep1 : wep2))
#else