*** empty log message ***

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@939 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2007-04-07 02:04:38 +00:00
parent 45c31072db
commit bf426ec134
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -106,7 +106,7 @@ struct md2 : vertmodel
int *glcommands = new int[header.numglcommands];
fseek(file, header.offsetglcommands, SEEK_SET);
int numglcommands = fread(glcommands, sizeof(int), header.numglcommands, file);
int numglcommands = (int)fread(glcommands, sizeof(int), header.numglcommands, file);
endianswap(glcommands, sizeof(int), numglcommands);
if(numglcommands < header.numglcommands) memset(&glcommands[numglcommands], 0, (header.numglcommands-numglcommands)*sizeof(int));
+1 -1
View File
@@ -142,7 +142,7 @@ void rendermenumdl()
if(isplayermodel)
{
s_sprintfd(skin)("packages/models/%s.jpg", m.mdl);
tex = -textureload(skin)->id;
tex = -(int)textureload(skin)->id;
}
rendermodel(isplayermodel ? (char *)"playermodels" : m.mdl, m.anim, tex, 0, pos.x, pos.z, pos.y, yaw, 0, 100, 0, NULL, isplayermodel ? (char*)"weapons/subgun/world" : NULL, m.scale ? m.scale/25.0f : 1.0f);
+1 -1
View File
@@ -252,7 +252,7 @@ void renderclient(playerent *d)
string vwep;
if(d->gunselect>=0 && d->gunselect<NUMGUNS) s_sprintf(vwep)("weapons/%s/world", hudgunnames[d->gunselect]);
else vwep[0] = 0;
renderclient(d, "playermodels", vwep[0] ? vwep : NULL, -textureload(skin)->id);
renderclient(d, "playermodels", vwep[0] ? vwep : NULL, -(int)textureload(skin)->id);
}
void renderclients()