Skip to content

Commit 1143729

Browse files
committed
Add support for PEXT_MODELDBL.
1 parent 0f9ec6c commit 1143729

2 files changed

Lines changed: 9 additions & 3 deletions

File tree

src/netmsg_parser.c

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1295,10 +1295,10 @@ static void NetMsg_Parser_Parse_svc_chokecount(void)
12951295
MSG_ReadByte();
12961296
}
12971297

1298-
static void NetMsg_Parser_Parse_svc_modellist(void)
1298+
static void NetMsg_Parser_Parse_svc_modellist(qbool extended)
12991299
{
13001300
char *str;
1301-
int model_count = MSG_ReadByte();
1301+
int model_count = extended ? MSG_ReadShort() : MSG_ReadByte();
13021302

13031303
while (true)
13041304
{
@@ -1599,7 +1599,12 @@ qbool NetMsg_Parser_StartParse(mvd_info_t *mvd)
15991599
}
16001600
case svc_modellist :
16011601
{
1602-
NetMsg_Parser_Parse_svc_modellist();
1602+
NetMsg_Parser_Parse_svc_modellist(false);
1603+
break;
1604+
}
1605+
case svc_fte_modellistshort :
1606+
{
1607+
NetMsg_Parser_Parse_svc_modellist(true);
16031608
break;
16041609
}
16051610
case svc_soundlist :

src/qw_protocol.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ extern char *print_strings[]; // Contains descriptions of the print levels.
138138
#define svc_serverinfo 52 // serverinfo
139139
#define svc_updatepl 53 // [byte] [byte]
140140
#define svc_nails2 54
141+
#define svc_fte_modellistshort 60
141142
#define svc_fte_spawnbaseline2 66
142143
#define svc_qizmovoice 83
143144

0 commit comments

Comments
 (0)