mirror of
https://github.com/nzp-team/fteqw.git
synced 2025-01-19 23:11:05 +00:00
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:
parent
baa9f5004a
commit
cd21e68e3b
2 changed files with 13 additions and 1 deletions
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue