Skip to content

Commit e68ecce

Browse files
committed
fix compatibility with y_foreach
1 parent 2533191 commit e68ecce

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

3DTryg.inc

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Platforms:
1414
- SA:MP 0.3 DL
1515
1616
File Version:
17-
- Gen. 2 v1.0.1
17+
- Gen. 2 v1.0.2
1818
1919
Plugin Versions:
2020
- ColAndreas Version: 1.5.0
@@ -646,11 +646,11 @@ enum 'StreamType'
646646
/*
647647
//Check Version 3DTryg.inc
648648
#if !defined TRYG3D_REMASTERED_INCLUDE
649-
#error [ADM] This include required 3DTryg.inc Gen. 2 v1.0.1
649+
#error [ADM] This include required 3DTryg.inc Gen. 2 v1.0.2
650650
#elseif !defined TRYG3D_VERSION
651-
#error [ADM] Update your 3DTryg.inc to Gen. 2 v1.0.1
652-
#elseif (TRYG3D_VERSION < 10001)
653-
#error [ADM] Update your 3DTryg.inc to Gen. 2 v1.0.1
651+
#error [ADM] Update your 3DTryg.inc to Gen. 2 v1.0.2
652+
#elseif (TRYG3D_VERSION < 10002)
653+
#error [ADM] Update your 3DTryg.inc to Gen. 2 v1.0.2
654654
#endif
655655
*/
656656

@@ -667,7 +667,7 @@ enum 'StreamType'
667667
#endif
668668
#define TRYG3D_REMASTERED_INCLUDE
669669

670-
#define TRYG3D_VERSION (10001) //a.b.c g+10000*a+100*b+c
670+
#define TRYG3D_VERSION (10002) //a.b.c g+10000*a+100*b+c
671671
#define TRYG3D_LIBRARY_NAME "3DTryg"
672672
#define TRYG3D_AUTHOR_NAME "Abyss Morgan"
673673

@@ -1313,7 +1313,11 @@ new const Float: Tryg3D::OrientationRotation[ElementOrientation][2] = {
13131313
#define abs(%0) (((%0) < 0)?(-(%0)):((%0)))
13141314
#define fabs(%0) (((%0) < 0.0)?(-(%0)):((%0)))
13151315
#define sqrtN(%0,%1) floatpower((%0),(1.0/(%1)))
1316-
#define IsEven(%0) ((((%0) % 2) == 0)?(true):(false))
1316+
1317+
#if !defined IsEven
1318+
#define IsEven(%0) ((((%0) % 2) == 0)?(true):(false))
1319+
#endif
1320+
13171321
#define power(%0,%1) (floatround(floatpower((%0),(%1))))
13181322

13191323
/********************************

0 commit comments

Comments
 (0)