[Scripts]: Fixed 'Scr_GetFloat' function
This commit is contained in:
parent
4f32fe70a0
commit
22d7821e17
@ -64,13 +64,15 @@ namespace Game
|
||||
|
||||
float Scr_GetFloat/*st0*/(unsigned int index /*eax*/)
|
||||
{
|
||||
float result;
|
||||
const static uint32_t Scr_GetFloat_func = 0x5583A0;
|
||||
__asm
|
||||
{
|
||||
mov eax, index;
|
||||
xor eax, eax;
|
||||
call Scr_GetFloat_func;
|
||||
fstp dword ptr[result]; //FIXED!!!
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
void Scr_Error(const char* error/*eax*/)
|
||||
|
@ -13,7 +13,7 @@ namespace Game
|
||||
typedef void(*Scr_AddInt_t)(int value);
|
||||
extern Scr_AddInt_t Scr_AddInt;
|
||||
|
||||
typedef void(*Scr_AddFloat_t)(float value);
|
||||
typedef void(__cdecl* Scr_AddFloat_t)(float value);
|
||||
extern Scr_AddFloat_t Scr_AddFloat;
|
||||
|
||||
typedef void(__cdecl* Scr_ParamError_t)(const char* error, ...);
|
||||
|
Loading…
x
Reference in New Issue
Block a user