Fixed amd64 offsets... cs_get_hostage_follow works, cs_set_hostage_follow doesn't yet :-(
This commit is contained in:
parent
d4e69d97e0
commit
60940512e2
|
@ -1186,8 +1186,11 @@ static cell AMX_NATIVE_CALL cs_get_hostage_follow(AMX *amx, cell *params) // cs_
|
|||
return 0;
|
||||
}
|
||||
|
||||
#if !defined __amd64__
|
||||
int following = *((int *)pHostage->pvPrivateData + OFFSET_HOSTAGEFOLLOW);
|
||||
|
||||
#else
|
||||
long following = *((long *)pHostage->pvPrivateData + OFFSET_HOSTAGEFOLLOW);
|
||||
#endif
|
||||
if (following == 0)
|
||||
return following;
|
||||
|
||||
|
@ -1252,8 +1255,11 @@ static cell AMX_NATIVE_CALL cs_set_hostage_follow(AMX *amx, cell *params) // cs_
|
|||
return 0;
|
||||
}
|
||||
|
||||
#if !defined __amd64__
|
||||
*((int *)pHostage->pvPrivateData + OFFSET_HOSTAGEFOLLOW) = (int)pEntity;
|
||||
|
||||
#else
|
||||
*((long *)pHostage->pvPrivateData + OFFSET_HOSTAGEFOLLOW) = (long)pEntity;
|
||||
#endif
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* AMX Mod X
|
||||
/* AMX Mod X
|
||||
* Counter-Strike Module
|
||||
*
|
||||
* by the AMX Mod X Development Team
|
||||
|
|
Loading…
Reference in New Issue
Block a user