X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=protocol.c;h=0c5984e2de08da030b8952c1ca15db669605c71b;hb=f0faa64288f36d667f40eecfb3c1a321e0a3bf8a;hp=b4c5ecbb36b036ef26519bb28f950f3ccf5c00f0;hpb=2b7afb8eba1bdb317531813d68133690d306ae2b;p=xonotic%2Fdarkplaces.git diff --git a/protocol.c b/protocol.c index b4c5ecbb..0c5984e2 100644 --- a/protocol.c +++ b/protocol.c @@ -305,14 +305,12 @@ static void EntityFrameCSQC_LostAllFrames(client_t *client) void EntityFrameCSQC_LostFrame(client_t *client, int framenum) { // marks a frame as lost - int i, j, n; + int i, j; qboolean valid; int ringfirst, ringlast; static int recoversendflags[MAX_EDICTS]; csqcentityframedb_t *d; - n = client->csqcnumedicts; - // is our frame out of history? ringfirst = client->csqcentityframehistory_next; // oldest entry ringlast = (ringfirst + NUM_CSQCENTITYDB_FRAMES - 1) % NUM_CSQCENTITYDB_FRAMES; // most recently added entry @@ -2036,7 +2034,7 @@ static void EntityFrame5_ExpandEdicts(entityframe5_database_t *d, int newmax) static int EntityState5_Priority(entityframe5_database_t *d, int stateindex) { int limit, priority; - entity_state_t *s; + entity_state_t *s = NULL; // hush compiler warning by initializing this // if it is the player, update urgently if (stateindex == d->viewentnum) return ENTITYFRAME5_PRIORITYLEVELS - 1; @@ -2868,10 +2866,10 @@ void EntityStateQW_ReadPlayerUpdate(void) if (bits & QW_CM_UP) MSG_ReadShort(); // cmd->upmove if (bits & QW_CM_BUTTONS) - MSG_ReadByte(); // cmd->buttons + (void) MSG_ReadByte(); // cmd->buttons if (bits & QW_CM_IMPULSE) - MSG_ReadByte(); // cmd->impulse - MSG_ReadByte(); // cmd->msec + (void) MSG_ReadByte(); // cmd->impulse + (void) MSG_ReadByte(); // cmd->msec } if (playerflags & QW_PF_VELOCITY1) velocity[0] = MSG_ReadShort();