mirror of
https://github.com/libretro/libretro-tyrquake.git
synced 2024-11-27 02:00:41 +00:00
server: fix incorrect pr_strings usage on weaponmodel
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
This commit is contained in:
parent
6dd9c848e9
commit
693b7530b1
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user