Skip to content

Commit 281423c

Browse files
author
Niko
committed
progress
1 parent 89e9b9e commit 281423c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

decompile/General/AltMods/Mods4.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,6 @@ void FastAnim_Decompress(struct ModelAnim* ma, u_int* pCmd)
3737

3838
struct Mempack* ptrMempack = sdata->PtrMempack;
3939

40-
// TODO: Only Turn animation works
41-
if(ma->name[0] != 't')
42-
return;
43-
4440
printf("Run Animation: %s\n", ma->name);
4541

4642
u_int pCmd_backup = pCmd;
@@ -55,7 +51,11 @@ void FastAnim_Decompress(struct ModelAnim* ma, u_int* pCmd)
5551

5652
char* firstFrame = MODELANIM_GETFRAME(ma);
5753
struct ModelFrame* mf = &firstFrame[ma->frameSize * i];
58-
54+
55+
// TEMPORARY workaround, will break some anims
56+
if (mf->vertexOffset != 0x1C)
57+
mf->vertexOffset = 0x1C;
58+
5959
// may be compressed vertData, or uncompresed
6060
char* vertData = MODELFRAME_GETVERT(mf);
6161

0 commit comments

Comments
 (0)