X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=protocol.c;fp=protocol.c;h=85db0877cb1311556d2dfcc924a0cf07d88bed6d;hb=b314e889bc28c04da19258529b3215f37baa6629;hp=6a4e435e955886c68ffb2e090108e380a23cf6be;hpb=48dd658f8bbfa60efbd5f56d1c208727c4418078;p=xonotic%2Fdarkplaces.git diff --git a/protocol.c b/protocol.c index 6a4e435e..85db0877 100644 --- a/protocol.c +++ b/protocol.c @@ -521,6 +521,9 @@ qboolean EntityFrameCSQC_WriteFrame (sizebuf_t *msg, int maxsize, int numnumbers } else { + // save the cursize value in case we overflow and have to rollback + int oldcursize = msg->cursize; + // An update. sendflags = client->csqcentitysendflags[number]; // Nothing to send? FINE. @@ -531,8 +534,6 @@ qboolean EntityFrameCSQC_WriteFrame (sizebuf_t *msg, int maxsize, int numnumbers sendflags = 0xFFFFFF; // write an update - // save the cursize value in case we overflow and have to rollback - int oldcursize = msg->cursize; if (PRVM_serveredictfunction(ed, SendEntity)) { if(!sectionstarted)