lumplen = LittleLong(header->lumps[Q2LUMP_ENTITIES].filelen);
}
}
- else if((p = LittleLong(((int *)buf)[0])) == BSPVERSION || p == 30)
+ else if((p = BuffLittleLong(buf)) == BSPVERSION || p == 30)
{
dheader_t *header = (dheader_t *)buf;
lumpofs = LittleLong(header->lumps[LUMP_ENTITIES].fileofs);
int map_index;
ft2_font_map_t *fmap, temp;
- if (IS_NAN(size))
+ if (!(size > 0.001f && size < 1000.0f))
size = 0;
if (!size)
for(i = 0; i < Cmd_Argc()-3; ++i)
{
sz = atof(Cmd_Argv(i+3));
- if (IS_NAN(sz)) // do not use crap sizes
- continue;
- f->req_sizes[i] = sz;
+ if (sz > 0.001f && sz < 1000.0f) // do not use crap sizes
+ f->req_sizes[i] = sz;
}
}
LoadFont(true, mainfont, f);
return 1;
*parentindex = model->data_bones[tagindex].parent;
*tagname = model->data_bones[tagindex].name;
+ memset(blendmatrix, 0, sizeof(blendmatrix));
for (blendindex = 0;blendindex < MAX_FRAMEBLENDS && frameblend[blendindex].lerp > 0;blendindex++)
{
lerp = frameblend[blendindex].lerp;
return 1;
*parentindex = -1;
*tagname = model->data_tags[tagindex].name;
+ memset(blendmatrix, 0, sizeof(blendmatrix));
for (blendindex = 0;blendindex < MAX_FRAMEBLENDS && frameblend[blendindex].lerp > 0;blendindex++)
{
lerp = frameblend[blendindex].lerp;
int NetConn_SendUnreliableMessage(netconn_t *conn, sizebuf_t *data, protocolversion_t protocol, int rate, qboolean quakesignon_suppressreliables)
{
int totallen = 0;
- int temp;
// if this packet was supposedly choked, but we find ourselves sending one
// anyway, make sure the size counting starts at zero
sendreliable = true;
}
// outgoing unreliable packet number, and outgoing reliable packet number (0 or 1)
- temp = (unsigned int)conn->outgoing_unreliable_sequence | ((unsigned int)sendreliable<<31);
- *((int *)(sendbuffer + 0)) = LittleLong(temp);
+ StoreLittleLong(sendbuffer, (unsigned int)conn->outgoing_unreliable_sequence | ((unsigned int)sendreliable<<31));
// last received unreliable packet number, and last received reliable packet number (0 or 1)
- temp = (unsigned int)conn->qw.incoming_sequence | ((unsigned int)conn->qw.incoming_reliable_sequence<<31);
- *((int *)(sendbuffer + 4)) = LittleLong(temp);
+ StoreLittleLong(sendbuffer + 4, (unsigned int)conn->qw.incoming_sequence | ((unsigned int)conn->qw.incoming_reliable_sequence<<31));
packetLen = 8;
conn->outgoing_unreliable_sequence++;
// client sends qport in every packet