Skip to content

Commit 9fe092a

Browse files
committed
Add support for PEXT_SPAWNSTATIC2.
1 parent 91d5529 commit 9fe092a

File tree

3 files changed

+28
-3
lines changed

3 files changed

+28
-3
lines changed

src/netmsg_parser.c

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -962,6 +962,13 @@ static void NetMsg_Parser_Parse_svc_spawnstatic(void)
962962
}
963963
}
964964

965+
static void NetMsg_Parser_Parse_svc_fte_spawnstatic2(void)
966+
{
967+
unsigned int entnum, bits, morebits;
968+
NetMsg_Parser_ParseEntityNum(&entnum, &bits, &morebits);
969+
NetMsg_Parser_ParseEntityDelta(bits, morebits);
970+
}
971+
965972
static void NetMsg_Parser_Parse_svc_spawnbaseline(void)
966973
{
967974
int i;
@@ -979,6 +986,13 @@ static void NetMsg_Parser_Parse_svc_spawnbaseline(void)
979986
}
980987
}
981988

989+
static void NetMsg_Parser_Parse_svc_fte_spawnbaseline2(void)
990+
{
991+
unsigned int entnum, bits, morebits;
992+
NetMsg_Parser_ParseEntityNum(&entnum, &bits, &morebits);
993+
NetMsg_Parser_ParseEntityDelta(bits, morebits);
994+
}
995+
982996
static void NetMsg_Parser_Parse_svc_temp_entity(void)
983997
{
984998
int i;
@@ -1596,6 +1610,11 @@ qbool NetMsg_Parser_StartParse(mvd_info_t *mvd)
15961610
NetMsg_Parser_Parse_svc_spawnbaseline();
15971611
break;
15981612
}
1613+
case svc_fte_spawnbaseline2 :
1614+
{
1615+
NetMsg_Parser_Parse_svc_fte_spawnbaseline2();
1616+
break;
1617+
}
15991618
case svc_updatefrags :
16001619
{
16011620
NetMsg_Parser_Parse_svc_updatefrags(mvd);
@@ -1711,6 +1730,11 @@ qbool NetMsg_Parser_StartParse(mvd_info_t *mvd)
17111730
NetMsg_Parser_Parse_svc_spawnstatic();
17121731
break;
17131732
}
1733+
case svc_fte_spawnstatic2 :
1734+
{
1735+
NetMsg_Parser_Parse_svc_fte_spawnstatic2();
1736+
break;
1737+
}
17141738
case svc_foundsecret :
17151739
{
17161740
NetMsg_Parser_Parse_svc_foundsecret();

src/qw_protocol.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ char *svc_strings[] =
3333
"svc_damage", // [byte] impact [byte] blood [vec3] from
3434

3535
"svc_spawnstatic",
36-
"OBSOLETE svc_spawnbinary",
36+
"svc_fte_spawnstatic2",
3737
"svc_spawnbaseline",
3838

3939
"svc_temp_entity", // <variable>
@@ -84,7 +84,7 @@ char *svc_strings[] =
8484
"NEW PROTOCOL",
8585
"NEW PROTOCOL",
8686
"NEW PROTOCOL",
87-
"NEW PROTOCOL"
87+
"svc_fte_spawnbaseline2"
8888
};
8989

9090

src/qw_protocol.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ extern char *print_strings[]; // Contains descriptions of the print levels.
8989
#define svc_damage 19
9090

9191
#define svc_spawnstatic 20
92-
// svc_spawnbinary 21
92+
#define svc_fte_spawnstatic2 21
9393
#define svc_spawnbaseline 22
9494

9595
#define svc_temp_entity 23 // variable
@@ -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_spawnbaseline2 66
141142
#define svc_qizmovoice 83
142143

143144
//==============================================

0 commit comments

Comments
 (0)