From: Mircea Kitsune Date: Mon, 11 Apr 2011 21:01:37 +0000 (+0300) Subject: Remove an useless code X-Git-Tag: xonotic-v0.5.0~263^2~10^2~51 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=b4ec898eb13cf6f7e68b1cdbc4c851973d876049;p=xonotic%2Fxonotic-data.pk3dir.git Remove an useless code --- diff --git a/qcsrc/server/w_hagar.qc b/qcsrc/server/w_hagar.qc index 532b6b628..8e676e20c 100644 --- a/qcsrc/server/w_hagar.qc +++ b/qcsrc/server/w_hagar.qc @@ -4,9 +4,6 @@ REGISTER_WEAPON(HAGAR, w_hagar, IT_ROCKETS, 8, WEP_FLAG_NORMAL | WEP_FLAG_RELOAD #ifdef SVQC // NO bounce protection, as bounces are limited! -.entity queuenext; -.entity queueprev; - void W_Hagar_Explode (void) { self.event_damage = SUB_Null; @@ -124,7 +121,7 @@ void W_Hagar_Attack2_Load (void) return; } - local entity missile, prevmissile, firstmissile; + local entity missile; local float counter, shots, loaded; local float used_ammo, enough_ammo; local vector s; @@ -174,25 +171,6 @@ void W_Hagar_Attack2_Load (void) missile.bot_dodge = TRUE; missile.bot_dodgerating = autocvar_g_balance_hagar_secondary_damage; - if(shots == 1) { - missile.queuenext = missile; - missile.queueprev = missile; - } - else if(counter == 0) { // first projectile, store in firstmissile for now - firstmissile = missile; - } - else if(counter == shots - 1) { // last projectile, link up with first projectile - prevmissile.queuenext = missile; - firstmissile.queueprev = missile; - missile.queuenext = firstmissile; - missile.queueprev = prevmissile; - } - else { // else link up with previous projectile - prevmissile.queuenext = missile; - missile.queueprev = prevmissile; - } - prevmissile = missile; - missile.touch = W_Hagar_Touch; // not bouncy missile.use = W_Hagar_Explode2; missile.think = adaptor_think2use_hittype_splash;