about summary refs log tree commit diff
path: root/src/game/server/entities
diff options
context:
space:
mode:
authorTeetime <TeetimeTW@yahoo.de>2013-02-04 23:30:35 +0100
committerTeetime <TeetimeTW@yahoo.de>2013-02-04 23:30:35 +0100
commitec0f6d1f179036580fb19d6a85818cf9aa726a22 (patch)
tree2b7980776be2bf50798428b203698df178b93afa /src/game/server/entities
parent32b2d5e8521e31a25ef713bca8bd75d5f210ee39 (diff)
downloadzcatch-ec0f6d1f179036580fb19d6a85818cf9aa726a22.tar.gz
zcatch-ec0f6d1f179036580fb19d6a85818cf9aa726a22.zip
Changed weapons a bit.
Now you are able to set endless grenade ammo and customize the ammo
for mode 2
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 a874debd..dc70641a 100644
--- a/src/game/server/entities/character.cpp
+++ b/src/game/server/entities/character.cpp
@@ -489,7 +489,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, g_Config.m_SvGrenadeBullets);
+				m_aWeapons[m_ActiveWeapon].m_Ammo = min(m_aWeapons[m_ActiveWeapon].m_Ammo + 1, g_Config.m_SvWeaponsAmmo);
 				m_aWeapons[m_ActiveWeapon].m_AmmoRegenStart = -1;
 			}
 		}