BHit_f light cleanup

This commit is contained in:
Kawe Mazidjatari 2022-10-11 01:32:43 +02:00
parent 2675fca219
commit addf815873

View File

@ -933,8 +933,9 @@ void BHit_f(const CCommand& args)
if (args.ArgC() != 9)
return;
if (bhit_enable->GetBool() && sv_visualizetraces->GetBool())
{
if (!bhit_enable->GetBool() && !sv_visualizetraces->GetBool())
return;
Vector3D vecAbsStart;
Vector3D vecAbsEnd;
@ -965,7 +966,6 @@ void BHit_f(const CCommand& args)
pEntity->GetAbsOrigin(), 10.f, 8, 6, 20, 60, 255, 0, sv_visualizetraces_duration->GetFloat());
}
}
}
#endif // !DEDICATED
}
#endif // !GAMEDLL_S0 && !GAMEDLL_S1