fix errors i made

This commit is contained in:
rtldg 2021-04-07 14:44:42 +00:00
parent d2810f778d
commit bbca665d4f
2 changed files with 8 additions and 2 deletions

View File

@ -438,7 +438,7 @@ stock void FormatSeconds(float time, char[] newtime, int newtimesize, bool preci
if (nodecimal)
{
FormatEx(sSeconds, 8, "%d", iRounded);
FormatEx(sSeconds, 8, "%d", iRounded % 60);
}
else
{

View File

@ -1780,7 +1780,13 @@ void SetWeaponAmmo(int client, int weapon, bool setClip1)
if (gCV_WeaponCommands.IntValue >= 3 && setClip1)
{
int amount = GetEntProp(weapon, Prop_Send, "m_iClip1") + (GetEntProp(weapon, Prop_Send, "m_bBurstMode") ? 3 : 1);
int amount = GetEntProp(weapon, Prop_Send, "m_iClip1") + 1;
if (HasEntProp(weapon, Prop_Send, "m_bBurstMode") && GetEntProp(weapon, Prop_Send, "m_bBurstMode"))
{
amount += 2;
}
SetEntProp(weapon, Prop_Data, "m_iClip1", amount);
}
}