about summary refs log tree commit diff
path: root/src/game/server
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/server')
-rw-r--r--src/game/server/entities/character.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/game/server/entities/character.cpp b/src/game/server/entities/character.cpp
index dba07ee7..3714bf08 100644
--- a/src/game/server/entities/character.cpp
+++ b/src/game/server/entities/character.cpp
@@ -275,6 +275,8 @@ void CHARACTER::fire_weapon()
 	// check for ammo
 	if(!weapons[active_weapon].ammo)
 	{
+		// 125ms is a magical limit of how fast a human can click
+		reload_timer = 125 * server_tickspeed() / 1000;;
 		game.create_sound(pos, SOUND_WEAPON_NOAMMO);
 		return;
 	}