mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Common: improve Mat_CrossHair_f() readability
Remove unnecessary indentation level.
This commit is contained in:
parent
2dc28bb742
commit
1766530af1
@ -306,8 +306,12 @@ void Mat_CrossHair_f(const CCommand& args)
|
|||||||
{
|
{
|
||||||
const CMaterialGlue* const materialGlue = v_GetMaterialAtCrossHair();
|
const CMaterialGlue* const materialGlue = v_GetMaterialAtCrossHair();
|
||||||
|
|
||||||
if (materialGlue)
|
if (!materialGlue)
|
||||||
{
|
{
|
||||||
|
Msg(eDLL_T::MS, "%s: No material found >:(\n", __FUNCTION__);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const MaterialGlue_s* const material = materialGlue->Get();
|
const MaterialGlue_s* const material = materialGlue->Get();
|
||||||
|
|
||||||
Msg(eDLL_T::MS, "______________________________________________________________\n");
|
Msg(eDLL_T::MS, "______________________________________________________________\n");
|
||||||
@ -336,11 +340,6 @@ void Mat_CrossHair_f(const CCommand& args)
|
|||||||
Msg(eDLL_T::MS, " |-- Streaming texture handles: '%llX'\n", material->streamingTextureHandles);
|
Msg(eDLL_T::MS, " |-- Streaming texture handles: '%llX'\n", material->streamingTextureHandles);
|
||||||
|
|
||||||
Msg(eDLL_T::MS, "--------------------------------------------------------------\n");
|
Msg(eDLL_T::MS, "--------------------------------------------------------------\n");
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
Msg(eDLL_T::MS, "%s: No material found >:(\n", __FUNCTION__);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user