Fixed frameduration() for HL MDL

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5662 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Eukara 2020-03-29 09:49:12 +00:00
parent baa9f5004a
commit cd21e68e3b
2 changed files with 13 additions and 1 deletions

View File

@ -5525,8 +5525,20 @@ float Mod_GetFrameDuration(model_t *model, int surfaceidx, int frameno)
galiasinfo_t *inf;
galiasanimation_t *group;
#ifdef HALFLIFEMODELS
if (model && model->type == mod_halflife) {
int unused;
float duration;
char *name;
qboolean loop;
HLMDL_FrameInfoForNum(model, surfaceidx, frameno, &name, &unused, &duration, &loop);
return duration;
}
#endif
if (!model || model->type != mod_alias)
return 0;
inf = Mod_Extradata(model);
while(surfaceidx-->0 && inf)

View File

@ -138,7 +138,7 @@
//#define HLSERVER 140 //we can run HL gamecode (not protocol compatible, set to 138 or 140)
#define SAVEDGAMES //Can save the game.
#define MVD_RECORDING //server can record MVDs.
//#define ENGINE_ROUTING //Engine-provided routing logic (possibly threaded)
#define ENGINE_ROUTING //Engine-provided routing logic (possibly threaded)
//#define USE_INTERNAL_BULLET //Statically link against bullet physics plugin (instead of using an external plugin)
//#define USE_INTERNAL_ODE //Statically link against ode physics plugin (instead of using an external plugin)