]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
made IQM framerate a float
authoreihrul <eihrul@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 13 Mar 2010 18:08:41 +0000 (18:08 +0000)
committereihrul <eihrul@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 13 Mar 2010 18:08:41 +0000 (18:08 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10052 d7cf8633-e32d-0410-b094-e92efae38249

model_alias.c
model_iqm.h

index 91de0dc7dda9391de1b2277f01d4f6c3b7e7a1fa..9d82070636766aaeb9a55813468a2a39be3ef94b 100644 (file)
@@ -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++)
                {
index 2509e0346b71aa8b80d5c9d0c95acaefcf035384..78197162ec29ac5804d541f9e64f5b5124b83b2a 100644 (file)
@@ -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;