diff --git a/source/src/clientgame.cpp b/source/src/clientgame.cpp index b630384e..f0399606 100644 --- a/source/src/clientgame.cpp +++ b/source/src/clientgame.cpp @@ -463,7 +463,7 @@ void selfdamage(int damage, int actor, playerent *act, bool gib, playerent *pl) } else { - ++act->frags; + act->frags += gib ? 2 : 1; conoutf("\f2%s fragged %s", act==player1 ? "you" : act->name, pl->name); }; } @@ -489,7 +489,7 @@ void selfdamage(int damage, int actor, playerent *act, bool gib, playerent *pl) pl->lifesequence++; playsound(S_DIE1+rnd(2), pl!=player1 ? &pl->o : NULL); if(gib) addgib(pl); - if(pl!=player1 || act->type==ENT_BOT) act->frags++; + if(pl!=player1 || act->type==ENT_BOT) act->frags += gib ? 2 : 1; } else { diff --git a/source/src/clients2c.cpp b/source/src/clients2c.cpp index 3729c964..ed1e8714 100644 --- a/source/src/clients2c.cpp +++ b/source/src/clients2c.cpp @@ -267,7 +267,7 @@ void parsemessages(int cn, playerent *d, ucharbuf &p) } else { - frags = 1; + frags = gib ? 2 : 1; conoutf("\f2you fragged %s", d->name); }; addmsg(SV_FRAGS, "ri", player1->frags += frags);