server: fix incorrect pr_strings usage on weaponmodel

Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
This commit is contained in:
Kevin Shanahan 2013-05-11 11:18:05 +09:30
parent 6dd9c848e9
commit 693b7530b1

View File

@ -781,7 +781,7 @@ SV_WriteClientdataToMessage(edict_t *player, sizebuf_t *msg)
if (sv.protocol == PROTOCOL_VERSION_FITZ) {
if ((bits & SU_WEAPON) &&
(SV_ModelIndex(pr_strings + player->v.weaponmodel) & 0xff00))
(SV_ModelIndex(PR_GetString(player->v.weaponmodel)) & 0xff00))
bits |= SU_FITZ_WEAPON2;
if ((int)player->v.armorvalue & 0xff00)
bits |= SU_FITZ_ARMOR2;
@ -861,7 +861,7 @@ SV_WriteClientdataToMessage(edict_t *player, sizebuf_t *msg)
/* FITZ protocol stuff */
if (bits & SU_FITZ_WEAPON2)
MSG_WriteByte(msg, SV_ModelIndex(pr_strings + player->v.weaponmodel) >> 8);
MSG_WriteByte(msg, SV_ModelIndex(PR_GetString(player->v.weaponmodel)) >> 8);
if (bits & SU_FITZ_ARMOR2)
MSG_WriteByte(msg, (int)player->v.armorvalue >> 8);
if (bits & SU_FITZ_AMMO2)