From 1721383237fbd5acaeb1b468c471b189deb41401 Mon Sep 17 00:00:00 2001 From: Steve Dudenhoeffer Date: Sun, 5 Aug 2007 11:23:02 +0000 Subject: [PATCH] Fix for amb736 - find_entity defined twice --- plugins/include/amxmod_compat/VexdUM_stock.inc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/include/amxmod_compat/VexdUM_stock.inc b/plugins/include/amxmod_compat/VexdUM_stock.inc index ef652cc2..051df957 100644 --- a/plugins/include/amxmod_compat/VexdUM_stock.inc +++ b/plugins/include/amxmod_compat/VexdUM_stock.inc @@ -97,7 +97,8 @@ stock can_see(ent1, ent2) // type = 10: "noise3" // type = 11: "viewmodel" // type = 12: "weaponmodel" -stock find_entity(ent, szValue[], type=0) + +stock vexd_find_entity(ent, szValue[], type=0) { static _g_FindEntTypes[13][] = { @@ -124,6 +125,8 @@ stock find_entity(ent, szValue[], type=0) return engfunc(EngFunc_FindEntityByString, ent, _g_FindEntTypes[type], szValue); } +#define find_entity vexd_find_entity + //From AMX Mod: // Find an entity within a given origin and radius stock find_entity_sphere(ent, Float:Orig[3], Float:Rad)