View Single Post
Old 09-30-2006, 04:11 PM   #140
ensiform
The Stig
 
ensiform's Avatar
 
Join Date: Nov 2004
Location: Sawtooth Cauldron
Posts: 1,241
Current Game: Borderlands 2
possibly giving ammo to incorrect index in cg_predict.c.

Scroll to bottom of CG_TouchItem in cg_predict.c

replace these lines:

Code:
if ( !cg.predictedPlayerState.ammo[ item->giTag ] ) {
	cg.predictedPlayerState.ammo[ item->giTag ] = 1;
with:

Code:
if ( !cg.predictedPlayerState.ammo[ weaponData[item->giTag].ammoIndex ] ) {
	cg.predictedPlayerState.ammo[ weaponData[item->giTag].ammoIndex ] = 1;


iojamp project lead / coder
ensiform is offline   you may: quote & reply,