From 60940512e2e629206040dd50a2324e8fe5a55ab2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johnny=20Bergstr=C3=B6m?= Date: Tue, 14 Sep 2004 09:58:45 +0000 Subject: [PATCH] Fixed amd64 offsets... cs_get_hostage_follow works, cs_set_hostage_follow doesn't yet :-( --- dlls/cstrike/cstrike.cpp | 10 ++++++++-- dlls/cstrike/cstrike.h | 2 +- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/dlls/cstrike/cstrike.cpp b/dlls/cstrike/cstrike.cpp index 76b180b6..5bcdf384 100755 --- a/dlls/cstrike/cstrike.cpp +++ b/dlls/cstrike/cstrike.cpp @@ -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; } diff --git a/dlls/cstrike/cstrike.h b/dlls/cstrike/cstrike.h index cb063fe2..cfecac3a 100755 --- a/dlls/cstrike/cstrike.h +++ b/dlls/cstrike/cstrike.h @@ -1,4 +1,4 @@ - /* AMX Mod X +/* AMX Mod X * Counter-Strike Module * * by the AMX Mod X Development Team