This is an automated email from the git hooks/post-receive script. smcv pushed a commit to annotated tag 1.42d in repository iortcw.
commit 058825486003a66dff6965f74381f960b58d2dfc Author: Zack Middleton <zturtle...@gmail.com> Date: Sat Nov 28 20:17:07 2015 -0600 All: Fix ammo memset to zero --- MP/code/game/g_client.c | 2 +- SP/code/game/g_client.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/MP/code/game/g_client.c b/MP/code/game/g_client.c index 3d5dc3e..2eda571 100644 --- a/MP/code/game/g_client.c +++ b/MP/code/game/g_client.c @@ -798,7 +798,7 @@ void SetWolfSpawnWeapons( gclient_t *client ) { client->ps.teamNum = pc; // JPW NERVE -- zero out all ammo counts - memset( client->ps.ammo,MAX_WEAPONS,sizeof( int ) ); + memset( client->ps.ammo, 0, MAX_WEAPONS * sizeof( int ) ); // All players start with a knife (not OR-ing so that it clears previous weapons) client->ps.weapons[0] = 0; diff --git a/SP/code/game/g_client.c b/SP/code/game/g_client.c index a12079d..9656deb 100644 --- a/SP/code/game/g_client.c +++ b/SP/code/game/g_client.c @@ -821,8 +821,8 @@ void SetWolfSpawnWeapons( gclient_t *client ) { // Abuse teamNum to store player class as well (can't see stats for all clients in cgame) client->ps.teamNum = pc; -// JPW NERVE -- zero out all ammo counts - memset( client->ps.ammo,MAX_WEAPONS,sizeof( int ) ); + // JPW NERVE -- zero out all ammo counts + memset( client->ps.ammo, 0, MAX_WEAPONS * sizeof( int ) ); // All players start with a knife (not OR-ing so that it clears previous weapons) client->ps.weapons[0] = 0; -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/iortcw.git _______________________________________________ Pkg-games-commits mailing list Pkg-games-commits@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-games-commits