From 889135fb127854363d492686bf99d87d8f9ec48d Mon Sep 17 00:00:00 2001 From: Karim Date: Fri, 12 Apr 2024 16:45:52 -0400 Subject: [PATCH] chore: remove foreach testing stuff as y_iterate would be outdated by now --- foreach.inc | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/foreach.inc b/foreach.inc index 1b578d6..a5faa50 100644 --- a/foreach.inc +++ b/foreach.inc @@ -186,24 +186,9 @@ Iterators: // Foreach is testing us. #if defined _FOREACH_INC_TEST - #define _FOREACH_CUR_VERSION _FOREACH_LOCAL_VERSION #endinput #endif -#if !defined _FOREACH_NO_TEST - #define _FOREACH_INC_TEST - #tryinclude - #undef _FOREACH_INC_TEST - // exists - test which is newer. - #if defined _inc_y_iterate - #if _FOREACH_CUR_VERSION > _FOREACH_LOCAL_VERSION - // Foreach is newer. - #undef _inc_y_iterate - #define _FOREACH_NO_TEST - #include - #endinput - #endif - #endif -#endif +#define _FOREACH_INC_TEST #if !defined _samp_included #error "Please include a_samp or a_npc before foreach"