From da78f547122e66b59ae1eea3c59a6ce1bec08e12 Mon Sep 17 00:00:00 2001 From: Anders Jenbo Date: Tue, 24 Sep 2019 19:06:54 +0200 Subject: [PATCH] Apply plr_class --- Source/towners.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/towners.cpp b/Source/towners.cpp index 7a6e4fc2d..968541e18 100644 --- a/Source/towners.cpp +++ b/Source/towners.cpp @@ -689,11 +689,11 @@ void TalkToTowner(int p, int t) towner[t]._tVar1 = p; quests[QTYPE_BUTCH]._qvar1 = 1; #ifndef SPAWN - if (plr[p]._pClass == 0 && !effect_is_playing(PS_WARR8)) { + if (plr[p]._pClass == PC_WARRIOR && !effect_is_playing(PS_WARR8)) { PlaySFX(PS_WARR8); - } else if (plr[p]._pClass == 1 && !effect_is_playing(PS_ROGUE8)) { + } else if (plr[p]._pClass == PC_ROGUE && !effect_is_playing(PS_ROGUE8)) { PlaySFX(PS_ROGUE8); - } else if (plr[p]._pClass == 2 && !effect_is_playing(PS_MAGE8)) { + } else if (plr[p]._pClass == PC_SORCERER && !effect_is_playing(PS_MAGE8)) { PlaySFX(PS_MAGE8); } #endif