tnnt-devteam/tnnt

Problematic logic in equipping deathmatch NPC with gauntlets/gloves

Closed this issue · 3 comments

tnnt/src/files.c

Line 5174 in f5eac47

if (npc->data != &mons[PM_WIZARD] || npc->data != &mons[PM_PRIEST]

In this and the subsequent line, not being of various roles is tested... with ||, not && between them. Unless a character is somehow of all of these player monster types simultaneously (or, rather, all of these player monster types are the same thing), this will never not be the case.

Good catch. I must have been half-asleep when I made this, as the section after what you referenced is correct.

Happens to all of us...

Closed, see git commit bffd8b3.