mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-02-15 16:41:22 +00:00
Extra bloaty junk to modernise stuff a bit.
https://fte.triptohell.info/moodles/qss/
PF_VarString is only called on the server, in: - PF_error, PF_objerror, PF_dprint to print error / debugging messages - PF_bprint, which calls SV_BroadcastPrintf which copies the string into a 1024-byte buffer, then sends that to clients in a svc_print message - PF_sprint, which sends the string in a svc_print message using MSG_WriteString (without copying into an intermediate buffer) - PF_centerprint, which sends the return value of PF_VarString in a svc_centerprint message (without copying into an intermediate buffer) On the client: - svc_print reads the payload string with MSG_ReadString (2048-byte buffer), then Con_Printf is called (4096-byte buffer) - svc_centerprint uses MSG_ReadString then calls SCR_CenterPrint (1024-byte buffer) I also checked the original quake source and the client-side buffers for MSG_ReadString, Con_Printf, and SCR_CenterPrint are all the same sizes as in QS. Admittedly I want to support sock's ITS mod, but as far as I can see, it's a totally safe to increase this to 1024. git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@985 af15c1b1-3010-417e-b628-4374ebc0bcbd |
||
---|---|---|
quakespasm |