My favorites | Sign in
Project Home Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions

Issue 4 attachment: CNetworkPlayer.cpp.patch (656 bytes)

1
2
3
4
5
6
7
8
9
10
11
12
--- trunk/Client/Core/CNetworkPlayer.cpp
+++ trunk/Client/Core/CNetworkPlayer.cpp
@@ -683,7 +683,8 @@
SetInterior(uiInterior);
for(unsigned int ui = 1; ui < 12; ++ui)
GiveWeapon(uiWeap[ui], uiAmmo[ui]);
- SetAmmo(uiCurrWeap, GetAmmo(uiCurrWeap)-uiAmmoInClip+GetMaxAmmoInClip(uiCurrWeap));
+ //SetAmmo(uiCurrWeap, GetAmmo(uiCurrWeap)-uiAmmoInClip+GetMaxAmmoInClip(uiCurrWeap)); I am not sure, but maybe this is the cause for the bug that gives you 30 extra ammo? I don't see the point of this.
+ SetAmmo(uiCurrWeap, GetAmmo(uiCurrWeap)-uiAmmoInClip);
SetCurrentWeapon(uiCurrWeap);
SetAmmoInClip(uiAmmoInClip);
}
Powered by Google Project Hosting