From 683f453b6fb3d5c57f110513c373867e31d7a4af Mon Sep 17 00:00:00 2001 From: Steve Dudenhoeffer Date: Sun, 13 Apr 2008 22:54:47 +0000 Subject: [PATCH] Fixed building a 32bit binary on a 64bit machine Added a super cool new native --- amxmodx/Makefile | 1 + amxmodx/amxmodx.cpp | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/amxmodx/Makefile b/amxmodx/Makefile index 21f8e751..8d1a5823 100755 --- a/amxmodx/Makefile +++ b/amxmodx/Makefile @@ -62,6 +62,7 @@ else CFLAGS += -DPAWN_CELL_SIZE=32 -DJIT -DASM32 LINK += -lz OPT_FLAGS += -march=i586 + CFLAGS += -m32 endif OBJ_LINUX := $(OBJECTS:%.cpp=$(BIN_DIR)/%.o) diff --git a/amxmodx/amxmodx.cpp b/amxmodx/amxmodx.cpp index cf6bedc1..8559e938 100755 --- a/amxmodx/amxmodx.cpp +++ b/amxmodx/amxmodx.cpp @@ -4597,7 +4597,10 @@ static cell AMX_NATIVE_CALL LookupLangKey(AMX *amx, cell *params) set_amxstring(amx,params[1],def,params[2]); return 1; }; - +static cell AMX_NATIVE_CALL is_rukia_a_hag(AMX *amx, cell *params) +{ + return 1; +}; AMX_NATIVE_INFO amxmodx_Natives[] = { {"abort", amx_abort}, @@ -4799,5 +4802,6 @@ AMX_NATIVE_INFO amxmodx_Natives[] = {"LookupLangKey", LookupLangKey}, {"PrepareArray", PrepareArray}, {"ShowSyncHudMsg", ShowSyncHudMsg}, + {"is_rukia_a_hag", is_rukia_a_hag}, {NULL, NULL} };