From 745c595fc8c21d7f3be2e1a40a2d2fa0aee9b6ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johnny=20Bergstr=C3=B6m?= Date: Wed, 1 Sep 2004 08:39:30 +0000 Subject: [PATCH] Now uses fakemeta for pdata stocks --- plugins/include/jghg2.inc | 23 ++++++++--------------- 1 file changed, 8 insertions(+), 15 deletions(-) diff --git a/plugins/include/jghg2.inc b/plugins/include/jghg2.inc index 79c26494..6320fd6f 100755 --- a/plugins/include/jghg2.inc +++ b/plugins/include/jghg2.inc @@ -8,6 +8,7 @@ #include #include +#include #if !defined _jghg_enums #define _jghg_enums @@ -88,35 +89,27 @@ stock get_owner(id) stock get_pdata(entity, offset) { - return get_offset_int(entity, offset) -} -stock Float:get_pdata_float(entity, offset) -{ - return get_offset_float(entity, offset) + return get_pdata_int(entity, offset) } stock get_pdata_char(entity, offset) { - return get_offset_char(entity, offset) + return get_pdata_char(entity, offset) } stock get_pdata_short(entity, offset) { - return get_offset_short(entity, offset) + return get_pdata_short(entity, offset) } stock set_pdata(entity, offset, value) { - return set_offset_int(entity, offset, value) -} -stock set_pdata_float(entity, offset, Float:value) -{ - return set_offset_float(entity, offset, value) + return set_pdata_int(entity, offset, value) } stock set_pdata_char(entity, offset, value) { - return set_offset_char(entity, offset, value) + return set_pdata_char(entity, offset, value) } stock set_pdata_short(entity, offset, value) { - return set_offset_short(entity, offset, value) + return set_pdata_short(entity, offset, value) } stock is_ent_valid(id) @@ -169,4 +162,4 @@ stock jghg2_think(index) return call_think(index) } -#endif // INCLUDED_JGHG \ No newline at end of file +#endif // INCLUDED_JGHG