From: Mircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Date: Fri, 21 Jan 2011 17:33:13 +0000 (+0200)
Subject: Don't think this code is any longer necessary. If anything, it would need to be entir... 
X-Git-Tag: xonotic-v0.5.0~309^2~7^2~149
X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=fc0d76c567545cdefb6cc0cc09d90cbba83f66b0;p=xonotic%2Fxonotic-data.pk3dir.git

Don't think this code is any longer necessary. If anything, it would need to be entirely redone. Though I don't think bots will have a problem with reloading, since guns auto-reload once they run out of ammo.
---

diff --git a/qcsrc/server/bot/havocbot/havocbot.qc b/qcsrc/server/bot/havocbot/havocbot.qc
index 2a0d61d100..f6a5d50a39 100644
--- a/qcsrc/server/bot/havocbot/havocbot.qc
+++ b/qcsrc/server/bot/havocbot/havocbot.qc
@@ -946,12 +946,6 @@ void havocbot_chooseweapon()
 	if(i < 1)
 		return;
 
-	// Workaround for rifle reloading (..)
-	// Is this still needed with the new reload system?
-	/*if(self.weapon == WEP_SNIPERRIFLE)
-	if(i < autocvar_g_balance_sniperrifle_reloadtime + 1)
-		return;*/
-
 	local float w;
 	local float distance; distance=bound(10,vlen(self.origin-self.enemy.origin)-200,10000);