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:
flowtron
2010-10-06 19:17:39 +00:00
parent 9a6ea9db04
commit 6f9949585d
2 changed files with 4 additions and 1 deletions
+2
View File
@@ -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
}
}