mirror of
https://github.com/shavitush/bhoptimer.git
synced 2025-12-07 10:28:26 +00:00
fix errors i made
This commit is contained in:
parent
d2810f778d
commit
bbca665d4f
@ -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
|
||||
{
|
||||
|
||||
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user