about summary refs log tree commit diff
path: root/src/game/server/entities
diff options
context:
space:
mode:
authorTeetime <TeetimeTW@yahoo.de>2012-08-03 16:23:53 +0200
committerTeetime <TeetimeTW@yahoo.de>2012-08-03 16:23:53 +0200
commit6c6e29265cecb2d6432ec0f3058f6d2e4d1f0548 (patch)
tree512ea8e6e8a7bec46da97a51dd9691833ff85b7b /src/game/server/entities
parentc1fd71e9b17eda83d6dea92b01fd9e7692e70f61 (diff)
downloadzcatch-6c6e29265cecb2d6432ec0f3058f6d2e4d1f0548.tar.gz
zcatch-6c6e29265cecb2d6432ec0f3058f6d2e4d1f0548.zip
Made amount of grenade-bullets adjustable
Diffstat (limited to 'src/game/server/entities')
-rw-r--r--src/game/server/entities/character.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/server/entities/character.cpp b/src/game/server/entities/character.cpp
index 47f5e9f4..ac5f2f7c 100644
--- a/src/game/server/entities/character.cpp
+++ b/src/game/server/entities/character.cpp
@@ -494,7 +494,7 @@ void CCharacter::HandleWeapons()
 			if ((Server()->Tick() - m_aWeapons[m_ActiveWeapon].m_AmmoRegenStart) >= AmmoRegenTime * Server()->TickSpeed() / 1000)
 			{
 				// Add some ammo
-				m_aWeapons[m_ActiveWeapon].m_Ammo = min(m_aWeapons[m_ActiveWeapon].m_Ammo + 1, (GameServer()->m_pController->IsZCatch()) ? 6 : 10);
+				m_aWeapons[m_ActiveWeapon].m_Ammo = min(m_aWeapons[m_ActiveWeapon].m_Ammo + 1, (GameServer()->m_pController->IsZCatch()) ? g_Config.m_SvGrenadeBullets : 10);
 				m_aWeapons[m_ActiveWeapon].m_AmmoRegenStart = -1;
 			}
 		}