Oops forgot to change that
Dunno if this function ever gets called for non-player objects but just in case
This commit is contained in:
1 parent
8aa6f62b2d
commit
cdc5460fd6
1 file changed
+1
-3
+1
-3
@@ -2003,10 +2003,8 @@ void K_PlayHitEmSound(mobj_t *source, mobj_t *victim)
|
||||
{
|
||||
if (cv_kartvoices.value)
|
||||
{
|
||||
if (cv_karthitemdialog.value && victim && victim->player)
|
||||
if (cv_karthitemdialog.value && source->player && victim && victim->player)
|
||||
{
|
||||
I_Assert(source->player != NULL);
|
||||
|
||||
source->player->hitemtimer = TICRATE/2;
|
||||
source->player->hitemvictim = victim->player - players;
|
||||
|
||||
|
||||
Reference in new issue
Block a user