no message

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@541 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2006-11-08 04:47:10 +00:00
parent c776b5cb61
commit 7d6bdecd44
2 changed files with 1 additions and 2 deletions
-2
View File
@@ -39,14 +39,12 @@ void renderentities()
if(f.actor == player1) continue;
s_sprintfd(path)("pickups/flags/small_%s", rb_team_string(e.attr2));
mapmodelinfo mmi = {10, 4, 0, 0, path};
if(!&mmi) continue;
rendermodel(mmi.name, 0, 1, 0, 0, f.actor->o.x, f.actor->o.z+0.3f+(sin(lastmillis/100.0f)+1)/10, f.actor->o.y, lastmillis/2.5f, 0, false, 0.6f, 120.0f, mmi.snap);
}
else
{
s_sprintfd(path)("pickups/flags/%s", rb_team_string(e.attr2));
mapmodelinfo mmi = {10, 4, 0, 0, path};
if(!&mmi) continue;
rendermodel(mmi.name, 0, 7, 0, (float)mmi.rad, e.x, f.state==CTFF_INBASE ? (float)S(e.x, e.y)->floor : e.z, e.y, (float)((e.attr1+7)-(e.attr1+7)%15), 0, false, 1.0f, 120.0f, mmi.snap);
};
}
+1
View File
@@ -357,6 +357,7 @@ void preload_mapmodels()
loopv(ents)
{
entity &e = ents[i];
if(e.type!=MAPMODEL) continue;
mapmodelinfo &mmi = getmminfo(e.attr2);
if(!&mmi) continue;
md2 *m = loadmodel(mmi.name);