mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Merge pull request #7880 from ChillerDragon/pr_fix_07_armor
Fix 0.7 armor being snapped as health
This commit is contained in:
commit
0c2001be0b
|
@ -484,6 +484,8 @@ bool CGameContext::SnapPickup(const CSnapContext &Context, int SnapID, const vec
|
|||
pPickup->m_Type = SubType == WEAPON_SHOTGUN ? protocol7::PICKUP_SHOTGUN : SubType == WEAPON_GRENADE ? protocol7::PICKUP_GRENADE : protocol7::PICKUP_LASER;
|
||||
else if(Type == POWERUP_NINJA)
|
||||
pPickup->m_Type = protocol7::PICKUP_NINJA;
|
||||
else if(Type == POWERUP_ARMOR)
|
||||
pPickup->m_Type = protocol7::PICKUP_ARMOR;
|
||||
}
|
||||
else if(Context.GetClientVersion() >= VERSION_DDNET_ENTITY_NETOBJS)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue