mirror of
https://github.com/ZDoom/qzdoom-gpl.git
synced 2024-11-15 08:41:59 +00:00
Fixed possible sync issue with frag counts
This commit is contained in:
parent
b87435ac9d
commit
02c562518d
1 changed files with 11 additions and 4 deletions
|
@ -268,8 +268,6 @@ void ClientObituary (AActor *self, AActor *inflictor, AActor *attacker, int dmgf
|
|||
{
|
||||
if (friendly)
|
||||
{
|
||||
attacker->player->fragcount -= 2;
|
||||
attacker->player->frags[attacker->player - players]++;
|
||||
self = attacker;
|
||||
gender = self->player->userinfo.GetGender();
|
||||
mysnprintf (gendermessage, countof(gendermessage), "OB_FRIENDLY%c", '1' + (pr_obituary() & 3));
|
||||
|
@ -467,12 +465,21 @@ void AActor::Die (AActor *source, AActor *inflictor, int dmgflags)
|
|||
if ((dmflags2 & DF2_YES_LOSEFRAG) && deathmatch)
|
||||
player->fragcount--;
|
||||
|
||||
++source->player->fragcount;
|
||||
++source->player->spreecount;
|
||||
if (this->IsTeammate(source))
|
||||
{
|
||||
source->player->fragcount--;
|
||||
}
|
||||
else
|
||||
{
|
||||
++source->player->fragcount;
|
||||
++source->player->spreecount;
|
||||
}
|
||||
|
||||
if (source->player->morphTics)
|
||||
{ // Make a super chicken
|
||||
source->GiveInventoryType (RUNTIME_CLASS(APowerWeaponLevel2));
|
||||
}
|
||||
|
||||
if (deathmatch && cl_showsprees)
|
||||
{
|
||||
const char *spreemsg;
|
||||
|
|
Loading…
Reference in a new issue