Update p_mobj.cpp

This commit is contained in:
Simon 2021-03-07 15:27:58 +00:00
parent d1e59eef70
commit f4df49b04e

View file

@ -6841,8 +6841,9 @@ AActor *P_SpawnPlayerMissile (AActor *source, double x, double y, double z,
if (P_CheckMissileSpawn (MissileActor, source->radius)) if (P_CheckMissileSpawn (MissileActor, source->radius))
{ {
if (MissileActor->DamageFunc != nullptr || if (MissileActor->DamageFunc != nullptr || // If it causes damage...
MissileActor->DamageType.GetIndex() != 0) MissileActor->DamageType.GetIndex() != 0 ||
MissileActor->SeeSound != 0) // .. or if it plays a sound, we might as well play a haptic
{ {
//Haptics //Haptics
long rightHanded = vr_control_scheme < 10; long rightHanded = vr_control_scheme < 10;