- made GetObituary non-constant.

This gets only called from within the play code and making it const would block potential use cases that involve changing some internal variables like counters.
This commit is contained in:
Christoph Oelckers 2017-03-04 12:11:56 +01:00
parent b3ba5bfe2c
commit 4c5794b6d5
3 changed files with 3 additions and 3 deletions

View file

@ -425,7 +425,7 @@ class Actor : Thinker native
} }
} }
virtual String GetObituary(Actor victim, Actor inflictor, Name mod, bool playerattack) const virtual String GetObituary(Actor victim, Actor inflictor, Name mod, bool playerattack)
{ {
if (mod == 'Telefrag') if (mod == 'Telefrag')
{ {

View file

@ -89,7 +89,7 @@ class Weapon : StateProvider native
return s; return s;
} }
override String GetObituary(Actor victim, Actor inflictor, Name mod, bool playerattack) const override String GetObituary(Actor victim, Actor inflictor, Name mod, bool playerattack)
{ {
// Weapons may never return HitObituary by default. Override this if it is needed. // Weapons may never return HitObituary by default. Override this if it is needed.
return Obituary; return Obituary;

View file

@ -119,7 +119,7 @@ class PlayerPawn : Actor native
} }
} }
override String GetObituary(Actor victim, Actor inflictor, Name mod, bool playerattack) const override String GetObituary(Actor victim, Actor inflictor, Name mod, bool playerattack)
{ {
if (victim.player != player && victim.IsTeammate(self)) if (victim.player != player && victim.IsTeammate(self))
{ {