From de5bdad8deb1d73f38763851372196f2d5093ea5 Mon Sep 17 00:00:00 2001 From: Pavol Marko Date: Thu, 29 Apr 2004 17:09:57 +0000 Subject: [PATCH] modules with old interface don't load if SMALL_CELL_SIZE is 64. Reason: float/cell conversions. --- amxmodx/CModule.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/amxmodx/CModule.cpp b/amxmodx/CModule.cpp index 01458de3..3b5e67e6 100755 --- a/amxmodx/CModule.cpp +++ b/amxmodx/CModule.cpp @@ -271,6 +271,11 @@ bool CModule::queryModule() } else { + // old interface not 64 bit compatible +#if SMALL_CELL_SIZE == 64 + m_Status = MODULE_NOT64BIT; + return false; +#else // Try old interface QUERYMOD queryFunc_Old = (QUERYMOD)DLPROC(m_Handle,"AMX_Query"); // check what version if (!queryFunc_Old) @@ -303,6 +308,7 @@ bool CModule::queryModule() m_InfoOld->serial = (long int)this; m_Status = MODULE_QUERY; return true; +#endif } }