mirror of
https://github.com/ZDoom/qzdoom-gpl.git
synced 2024-11-26 13:51:35 +00:00
- 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:
parent
b3ba5bfe2c
commit
4c5794b6d5
3 changed files with 3 additions and 3 deletions
|
@ -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')
|
||||
{
|
||||
|
|
|
@ -89,7 +89,7 @@ class Weapon : StateProvider native
|
|||
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.
|
||||
return Obituary;
|
||||
|
|
|
@ -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))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue