Documentation : Commented redundant check
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
This commit is contained in:
parent
073a15b41b
commit
347f9282fe
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Add table
Reference in a new issue