1.1 --- a/core/sourcemod.cpp Mon May 26 07:48:26 2008 +0000
1.2 +++ b/core/sourcemod.cpp Mon May 26 07:51:11 2008 +0000
1.3 @@ -190,7 +190,9 @@
1.4 }
1.5 return false;
1.6 }
1.7 - } else {
1.8 + }
1.9 + else
1.10 + {
1.11 /* On version bumps, we should check for older versions as well, if the new version fails.
1.12 * We can then check the exports to see if any VM versions will be sufficient.
1.13 */
1.14 @@ -240,10 +242,11 @@
1.15 continue;
1.16 }
1.17 /* Refuse any API that we might not be able to deal with.
1.18 - * Also refuse anything < 3 because we need fake natives.
1.19 + * <s>Also refuse anything < 3 because we need fake natives.</s>
1.20 + * Also refuse anything < 7 because we need the new sp_native definition.
1.21 */
1.22 api_version = g_pVM->GetAPIVersion();
1.23 - if (api_version < 3 || api_version > SOURCEPAWN_VM_API_VERSION)
1.24 + if (api_version < 7 || api_version > SOURCEPAWN_VM_API_VERSION)
1.25 {
1.26 if (error && maxlength)
1.27 {