Fixed amd64 offsets... cs_get_hostage_follow works, cs_set_hostage_follow doesn't yet :-(

This commit is contained in:
Johnny Bergström 2004-09-14 09:58:45 +00:00
parent d4e69d97e0
commit 60940512e2
2 changed files with 9 additions and 3 deletions

View File

@ -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;
}

View File

@ -1,4 +1,4 @@
/* AMX Mod X
/* AMX Mod X
* Counter-Strike Module
*
* by the AMX Mod X Development Team