summaryrefslogtreecommitdiff
path: root/src/map/pc.h
diff options
context:
space:
mode:
authorKolkka <lmiranda@lumigo.net>2016-03-16 22:46:36 -0600
committerKolkka <lmiranda@lumigo.net>2016-03-16 22:46:36 -0600
commit327f9679f0f47bca96af2ef870ac5851bd6293ab (patch)
treee7e8718a41e4029e362ae6424b1e75d713dd760a /src/map/pc.h
parent3cecbe83ddf16d2884706a3a77f24a0228b794bd (diff)
downloadhercules-327f9679f0f47bca96af2ef870ac5851bd6293ab.tar.gz
hercules-327f9679f0f47bca96af2ef870ac5851bd6293ab.tar.bz2
hercules-327f9679f0f47bca96af2ef870ac5851bd6293ab.tar.xz
hercules-327f9679f0f47bca96af2ef870ac5851bd6293ab.zip
Fixes HerculesWS/Hercules#1198 and fixes HerculesWS/Hercules#1194 introduced in pull request #1189
Changed other instances of MAX_WEAPON_TYPE to MAX_SINGLE_WEAPON_TYPE.
Diffstat (limited to 'src/map/pc.h')
-rw-r--r--src/map/pc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/pc.h b/src/map/pc.h
index 0d2bca84d..5c5ec131d 100644
--- a/src/map/pc.h
+++ b/src/map/pc.h
@@ -657,7 +657,7 @@ END_ZEROED_BLOCK;
#define pc_stop_attack(sd) (unit->stop_attack(&(sd)->bl))
//Weapon check considering dual wielding.
-#define pc_check_weapontype(sd, type) ((type)&((sd)->status.weapon < MAX_WEAPON_TYPE? \
+#define pc_check_weapontype(sd, type) ((type)&((sd)->status.weapon < MAX_SINGLE_WEAPON_TYPE? \
1<<(sd)->status.weapon:(1<<(sd)->weapontype1)|(1<<(sd)->weapontype2)|(1<<(sd)->status.weapon)))
// clientside display macros (values to the left/right of the "+")