*** 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:
Lee Salzman
2006-11-17 21:45:51 +00:00
parent ac89e45921
commit d186fb6111
2 changed files with 4 additions and 3 deletions
+3 -2
View File
@@ -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;
+1 -1
View File
@@ -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);