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)
|
if (friendly)
|
||||||
{
|
{
|
||||||
attacker->player->fragcount -= 2;
|
|
||||||
attacker->player->frags[attacker->player - players]++;
|
|
||||||
self = attacker;
|
self = attacker;
|
||||||
gender = self->player->userinfo.GetGender();
|
gender = self->player->userinfo.GetGender();
|
||||||
mysnprintf (gendermessage, countof(gendermessage), "OB_FRIENDLY%c", '1' + (pr_obituary() & 3));
|
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)
|
if ((dmflags2 & DF2_YES_LOSEFRAG) && deathmatch)
|
||||||
player->fragcount--;
|
player->fragcount--;
|
||||||
|
|
||||||
++source->player->fragcount;
|
if (this->IsTeammate(source))
|
||||||
++source->player->spreecount;
|
{
|
||||||
|
source->player->fragcount--;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
++source->player->fragcount;
|
||||||
|
++source->player->spreecount;
|
||||||
|
}
|
||||||
|
|
||||||
if (source->player->morphTics)
|
if (source->player->morphTics)
|
||||||
{ // Make a super chicken
|
{ // Make a super chicken
|
||||||
source->GiveInventoryType (RUNTIME_CLASS(APowerWeaponLevel2));
|
source->GiveInventoryType (RUNTIME_CLASS(APowerWeaponLevel2));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (deathmatch && cl_showsprees)
|
if (deathmatch && cl_showsprees)
|
||||||
{
|
{
|
||||||
const char *spreemsg;
|
const char *spreemsg;
|
||||||
|
|
Loading…
Reference in a new issue