*** empty log message ***

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1352 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2007-10-13 19:08:38 +00:00
parent 300bc9fc9a
commit 6a2f46aac8
4 changed files with 6 additions and 2 deletions
+1 -1
View File
@@ -121,7 +121,7 @@ struct dynent : physent // animated ent
animstate prev[2], current[2]; // md2's need only [0], md3's need both for the lower&upper model
int lastanimswitchtime[2];
void *lastmodel[2];
int lastrendered = 0;
int lastrendered;
void stopmoving()
{
+2
View File
@@ -201,6 +201,8 @@ struct md2 : vertmodel
vwepmdl->setskin();
vwepmdl->render(anim, varseed, speed, basetime, o, yaw, pitch, d, NULL, scale);
}
if(d) d->lastrendered = lastmillis;
}
void rendershadow(int anim, int varseed, float speed, int basetime, const vec &o, float yaw, model *vwepmdl)
+2
View File
@@ -176,6 +176,8 @@ struct md3 : vertmodel
if(!cullface) glEnable(GL_CULL_FACE);
else if(anim&ANIM_MIRROR) glCullFace(GL_FRONT);
if(d) d->lastrendered = lastmillis;
}
void rendershadow(int anim, int varseed, float speed, int basetime, const vec &o, float yaw, model *vwepmdl)
+1 -1
View File
@@ -292,7 +292,7 @@ struct vertmodel : model
if(d && index<2)
{
if(d->lastmodel[index]!=this || d->lastanimswitchtime[index]==-1)
if(d->lastmodel[index]!=this || d->lastanimswitchtime[index]==-1 || lastmillis-d->lastrendered>animationinterpolationtime)
{
d->current[index] = as;
d->lastanimswitchtime[index] = lastmillis-animationinterpolationtime*2;