From 6e6de8b73421ac845e59bc347575410cf4a56ff6 Mon Sep 17 00:00:00 2001 From: Mircea Kitsune Date: Fri, 11 Feb 2011 22:46:21 +0200 Subject: [PATCH] Better comments --- qcsrc/server/cl_weaponsystem.qc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/qcsrc/server/cl_weaponsystem.qc b/qcsrc/server/cl_weaponsystem.qc index db2202e89..176ecb7db 100644 --- a/qcsrc/server/cl_weaponsystem.qc +++ b/qcsrc/server/cl_weaponsystem.qc @@ -1688,7 +1688,7 @@ float W_ReloadCheck() void W_ReloadEnd() { - // now do the ammo transfer + // finish the reloading process, and do the ammo transfer self.clip_load = self.old_clip_load; // restore the ammo counter, in case we still had ammo in the weapon before reloading @@ -1716,6 +1716,8 @@ void W_ReloadEnd() void W_ReloadStart() { + // begin the reloading process + sound (self, CHAN_WEAPON2, self.reload_sound, VOL_BASE, ATTN_NORM); // do not set ATTACK_FINISHED in reload code any more. This causes annoying delays if eg: You start reloading a weapon, @@ -1741,6 +1743,6 @@ void W_Reload(float sent_ammo_min, float sent_ammo_amount, float sent_time, stri if(!W_ReloadCheck()) return; - // now we can begin the actual reloading + // now begin the actual reloading W_ReloadStart(); } \ No newline at end of file -- 2.39.2