mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 22:48:18 +00:00
Fix 0.7 armor being snapped as health
Closed https://github.com/ZillyInsta/ddnet-insta/issues/91
This commit is contained in:
parent
8366bfb881
commit
40633d800a
|
@ -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