*** 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:
+1
-1
@@ -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()
|
||||
{
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user