mirror of
https://github.com/sfall-team/sfall.git
synced 2026-07-27 16:52:34 -07:00
Added a safeguard to the single-frame death anims tweak
Updated version number.
This commit is contained in:
@@ -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
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user