fix uncounted local shots (playerent->pstatshots)
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5715 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
@@ -656,6 +656,7 @@ void weapon::sendshoot(vec &from, vec &to)
|
||||
addmsg(SV_SHOOT, "ri2i3iv", lastmillis, owner->weaponsel->type,
|
||||
(int)(to.x*DMF), (int)(to.y*DMF), (int)(to.z*DMF),
|
||||
hits.length(), hits.length()*sizeof(hitmsg)/sizeof(int), hits.getbuf());
|
||||
player1->pstatshots[player1->weaponsel->type]++; //NEW
|
||||
}
|
||||
|
||||
bool weapon::modelattacking()
|
||||
@@ -862,6 +863,7 @@ void grenadeent::activate(const vec &from, const vec &to)
|
||||
(int)(to.x*DMF), (int)(to.y*DMF), (int)(to.z*DMF),
|
||||
0);
|
||||
audiomgr.playsound(S_GRENADEPULL, SP_HIGH);
|
||||
player1->pstatshots[GUN_GRENADE]++; //NEW
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user