File tree Expand file tree Collapse file tree 3 files changed +7
-1
lines changed
Server/mods/deathmatch/logic Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -68,6 +68,11 @@ bool CPickupManager::IsValidWeaponID(unsigned int uiWeaponID)
68
68
return (uiWeaponID > 0 && uiWeaponID != 13 && uiWeaponID != 19 && uiWeaponID != 20 && uiWeaponID != 21 && uiWeaponID <= 46 );
69
69
}
70
70
71
+ bool CPickupManager::HasWeaponBulletSync (uint32_t weaponID)
72
+ {
73
+ return weaponID >= 22 && weaponID <= 34 ;
74
+ }
75
+
71
76
unsigned short CPickupManager::GetWeaponModel (unsigned int uiWeaponID)
72
77
{
73
78
if (uiWeaponID <= 46 )
Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ class CPickupManager
36
36
std::list<CPickup*>::const_iterator IterEnd () { return m_List.end (); };
37
37
38
38
static bool IsValidWeaponID (unsigned int uiWeaponID);
39
+ static bool HasWeaponBulletSync (uint32_t weaponID);
39
40
static unsigned short GetWeaponModel (unsigned int uiWeaponID);
40
41
static unsigned short GetHealthModel () { return 1240 ; };
41
42
static unsigned short GetArmorModel () { return 1242 ; };
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ bool CSimBulletsyncPacket::Read(NetBitStreamInterface& BitStream)
26
26
{
27
27
char cWeaponType;
28
28
BitStream.Read (cWeaponType);
29
- if (!CPickupManager::IsValidWeaponID (cWeaponType))
29
+ if (!CPickupManager::HasWeaponBulletSync (cWeaponType))
30
30
return false ;
31
31
m_Cache.weaponType = (eWeaponType)cWeaponType;
32
32
You can’t perform that action at this time.
0 commit comments