X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Fweapons%2Fweapon%2Fmortar.qc;h=68f4012509d0b22ce10c5862144cbbf656473064;hb=91b5b85f82da949105551eb0ec01888ec52e8a99;hp=d03eb8e565d4080cdf16200dc467ee5f7acff880;hpb=c89dfaa4d0342b98c320621557973a65114fbdf4;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/weapons/weapon/mortar.qc b/qcsrc/common/weapons/weapon/mortar.qc index d03eb8e56..68f401250 100644 --- a/qcsrc/common/weapons/weapon/mortar.qc +++ b/qcsrc/common/weapons/weapon/mortar.qc @@ -320,7 +320,7 @@ void W_Mortar_Attack2(void) } .float bot_secondary_grenademooth; -bool W_Mortar(int req) +bool W_Mortar(entity thiswep, int req) {SELFPARAM(); entity nade; float nadefound; @@ -369,7 +369,7 @@ bool W_Mortar(int req) case WR_THINK: { if(autocvar_g_balance_mortar_reload_ammo && self.clip_load < min(WEP_CVAR_PRI(mortar, ammo), WEP_CVAR_SEC(mortar, ammo))) // forced reload - WEP_ACTION(self.weapon, WR_RELOAD); + _WEP_ACTION(self.weapon, WR_RELOAD); else if(self.BUTTON_ATCK) { if(weapon_prepareattack(0, WEP_CVAR_PRI(mortar, refire))) @@ -457,7 +457,7 @@ bool W_Mortar(int req) } #endif #ifdef CSQC -bool W_Mortar(int req) +bool W_Mortar(entity thiswep, int req) {SELFPARAM(); switch(req) {