mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-02-13 07:21:31 +00:00
Try to improve robustness when playing nehahra.
This commit is contained in:
parent
e0cc588ca3
commit
fe6f65306c
2 changed files with 17 additions and 2 deletions
|
@ -71,8 +71,8 @@ const char *svc_strings[128] =
|
||||||
"svc_sellscreen",
|
"svc_sellscreen",
|
||||||
"svc_cutscene",
|
"svc_cutscene",
|
||||||
//johnfitz -- new server messages
|
//johnfitz -- new server messages
|
||||||
"35", // 35
|
"svc_showpic_dp", // 35
|
||||||
"36", // 36
|
"svc_hidepic_dp", // 36
|
||||||
"svc_skybox_fitz", // 37 // [string] skyname
|
"svc_skybox_fitz", // 37 // [string] skyname
|
||||||
"38", // 38
|
"38", // 38
|
||||||
"39", // 39
|
"39", // 39
|
||||||
|
@ -2704,6 +2704,18 @@ void CL_ParseServerMessage (void)
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
//these two are used by nehahra. we ignore them, parsing only to avoid crashing.
|
||||||
|
case svcdp_showpic:
|
||||||
|
/*slotname = */MSG_ReadString();
|
||||||
|
/*imagename = */MSG_ReadString();
|
||||||
|
/*x = */MSG_ReadByte(); //FIXME: nehahra uses bytes, but DP uses shorts for other games. just use csqc instead.
|
||||||
|
/*y = */MSG_ReadByte();
|
||||||
|
Con_DPrintf("Ignoring svcdp_showpic\n");
|
||||||
|
break;
|
||||||
|
case svcdp_hidepic:
|
||||||
|
/*slotname = */MSG_ReadString();
|
||||||
|
Con_DPrintf("Ignoring svcdp_hidepic\n");
|
||||||
|
break;
|
||||||
|
|
||||||
case svcdp_effect:
|
case svcdp_effect:
|
||||||
case svcdp_effect2: //these are kinda pointless when the particle system can do it
|
case svcdp_effect2: //these are kinda pointless when the particle system can do it
|
||||||
|
|
|
@ -297,6 +297,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
#define svc_sellscreen 33
|
#define svc_sellscreen 33
|
||||||
#define svc_cutscene 34
|
#define svc_cutscene 34
|
||||||
|
|
||||||
|
#define svcdp_showpic 35 // [string] slot [string] img, [byte] x, [byte] y. purely for nehahra... only relative to top-left, so not very useful. use csqc instead.
|
||||||
|
#define svcdp_hidepic 36 // [string] slot
|
||||||
|
|
||||||
//johnfitz -- PROTOCOL_FITZQUAKE -- new server messages
|
//johnfitz -- PROTOCOL_FITZQUAKE -- new server messages
|
||||||
#define svc_skybox 37 // [string] name
|
#define svc_skybox 37 // [string] name
|
||||||
#define svc_bf 40
|
#define svc_bf 40
|
||||||
|
|
Loading…
Reference in a new issue