*** empty log message ***
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@707 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
+3
-2
@@ -106,8 +106,9 @@ struct md2 : vertmodel
|
||||
|
||||
int *glcommands = new int[header.numglcommands];
|
||||
fseek(file, header.offsetglcommands, SEEK_SET);
|
||||
fread(glcommands, header.numglcommands*sizeof(int), 1, file);
|
||||
endianswap(glcommands, sizeof(int), header.numglcommands);
|
||||
int numglcommands = fread(glcommands, sizeof(int), header.numglcommands, file);
|
||||
endianswap(glcommands, sizeof(int), numglcommands);
|
||||
glcommands[numglcommands < header.numglcommands ? numglcommands : numglcommands-1] = 0;
|
||||
|
||||
vector<tcvert> tcgen;
|
||||
vector<tri> trigen;
|
||||
|
||||
@@ -574,7 +574,7 @@ void process(ENetPacket *packet, int sender, int chan) // sender may be -1
|
||||
if(!cl->name[0]) newclient = true;
|
||||
getstring(text, p);
|
||||
if(!text[0]) s_strcpy(text, "unarmed");
|
||||
s_strcpy(cl->name, text);
|
||||
s_strncpy(cl->name, text, MAXNAMELEN+1);
|
||||
if(newclient)
|
||||
{
|
||||
clientscore *sc = findscore(*cl, false);
|
||||
|
||||
Reference in New Issue
Block a user