From: eihrul Date: Sat, 13 Mar 2010 18:08:41 +0000 (+0000) Subject: made IQM framerate a float X-Git-Tag: xonotic-v0.1.0preview~230^2~417 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=c7b1d8b1697106c4a3616e0c09aef5e85ca7b39a;p=xonotic%2Fdarkplaces.git made IQM framerate a float git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10052 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/model_alias.c b/model_alias.c index 91de0dc7..9d820706 100644 --- a/model_alias.c +++ b/model_alias.c @@ -3280,7 +3280,7 @@ void Mod_INTERQUAKEMODEL_Load(dp_model_t *mod, void *buffer, void *bufferend) anim[i].name = LittleLong(anim[i].name); anim[i].first_frame = LittleLong(anim[i].first_frame); anim[i].num_frames = LittleLong(anim[i].num_frames); - anim[i].framerate = LittleLong(anim[i].framerate); + anim[i].framerate = LittleFloat(anim[i].framerate); anim[i].flags = LittleLong(anim[i].flags); for (j = anim[i].first_frame;j < (int)(anim[i].first_frame + anim[i].num_frames);j++) { diff --git a/model_iqm.h b/model_iqm.h index 2509e034..78197162 100644 --- a/model_iqm.h +++ b/model_iqm.h @@ -74,7 +74,7 @@ typedef struct iqmanim_s { unsigned int name; unsigned int first_frame, num_frames; - unsigned int framerate; + float framerate; unsigned int flags; } iqmanim_t;