mirror of
https://github.com/JezuzLizard/BO2-Reimagined.git
synced 2025-06-10 15:17:57 -05:00
Pad empty lines around blocks
This commit is contained in:
@ -60,6 +60,7 @@ show_current_weapon(player)
|
||||
num = player getentitynumber();
|
||||
|
||||
displayname = "None";
|
||||
|
||||
if (player wl_has_stored_weapondata())
|
||||
{
|
||||
weapondata = player wl_get_stored_weapondata();
|
||||
@ -117,20 +118,24 @@ wl_set_stored_weapondata( weapondata )
|
||||
alt_name = weaponAltWeaponName(name);
|
||||
|
||||
clip_missing = weaponClipSize(name) - weapondata["clip"];
|
||||
|
||||
if (clip_missing > weapondata["stock"])
|
||||
{
|
||||
clip_missing = weapondata["stock"];
|
||||
}
|
||||
|
||||
weapondata["clip"] += clip_missing;
|
||||
weapondata["stock"] -= clip_missing;
|
||||
|
||||
if (dw_name != "none")
|
||||
{
|
||||
clip_dualwield_missing = weaponClipSize(dw_name) - weapondata["lh_clip"];
|
||||
|
||||
if (clip_dualwield_missing > weapondata["stock"])
|
||||
{
|
||||
clip_dualwield_missing = weapondata["stock"];
|
||||
}
|
||||
|
||||
weapondata["lh_clip"] += clip_dualwield_missing;
|
||||
weapondata["stock"] -= clip_dualwield_missing;
|
||||
}
|
||||
@ -138,10 +143,12 @@ wl_set_stored_weapondata( weapondata )
|
||||
if (alt_name != "none")
|
||||
{
|
||||
clip_alt_missing = weaponClipSize(alt_name) - weapondata["alt_clip"];
|
||||
|
||||
if (clip_alt_missing > weapondata["alt_stock"])
|
||||
{
|
||||
clip_alt_missing = weapondata["alt_stock"];
|
||||
}
|
||||
|
||||
weapondata["alt_clip"] += clip_alt_missing;
|
||||
weapondata["alt_stock"] -= clip_alt_missing;
|
||||
}
|
||||
|
Reference in New Issue
Block a user