Added a safeguard to the single-frame death anims tweak

Updated version number.
This commit is contained in:
NovaRain
2025-12-05 16:47:07 +08:00
parent 7fb3ffb69f
commit 3a3dd2f5f5
2 changed files with 10 additions and 3 deletions
+8 -1
View File
@@ -555,9 +555,16 @@ static __declspec(naked) void obj_read_obj_hack() {
add ebx, 28; // single-frame death animations
shl ebx, 16;
and edx, 0x0F00FFFF; // clear rotaion and anim code
or edx, ebx; // set new anim code (also unset ZF)
or edx, ebx; // set new anim code
mov eax, edx;
call fo::funcoffs::art_exists_;
test eax, eax;
jz noArt;
mov [esi + artFid], edx;
mov dword ptr [esi + currFrame], 0; // for single frame
retn;
noArt:
or eax, 1; // unset ZF (exit from func)
skip:
retn;
}
+2 -2
View File
@@ -25,6 +25,6 @@
#define VERSION_MAJOR 4
#define VERSION_MINOR 4
#define VERSION_BUILD 8
#define VERSION_REV 0
#define VERSION_REV 1
#define VERSION_STRING "4.4.8"
#define VERSION_STRING "4.4.8.1"