diff --git a/engine/common/com_mesh.c b/engine/common/com_mesh.c index 986f6037e..50530f18e 100644 --- a/engine/common/com_mesh.c +++ b/engine/common/com_mesh.c @@ -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) diff --git a/engine/common/config_fteqw.h b/engine/common/config_fteqw.h index b20177a84..b1fb68abb 100644 --- a/engine/common/config_fteqw.h +++ b/engine/common/config_fteqw.h @@ -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)