Documentation : Commented redundant check

Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
This commit is contained in:
Gabriel Ravier 2019-11-05 17:18:12 +01:00
parent 073a15b41b
commit 347f9282fe

View file

@ -520,7 +520,7 @@ void LoseNpChar(NPCHAR *npc, BOOL bVanish)
// Create value view // Create value view
if (npc->bits & NPC_SHOW_DAMAGE) if (npc->bits & NPC_SHOW_DAMAGE)
{ {
if ((npc->bits & NPC_SHOW_DAMAGE) && npc->damage_view) if ((npc->bits & NPC_SHOW_DAMAGE) && npc->damage_view) // npc->bits & NPC_SHOW_DAMAGE is already verified at this point, so this is redundant
SetValueView(&npc->x, &npc->y, npc->damage_view); SetValueView(&npc->x, &npc->y, npc->damage_view);
if (bVanish) if (bVanish)
VanishNpChar(npc); VanishNpChar(npc);