diff TileTable.cpp @ 1104:5d5c78088274

strcmpi to stricmp conversion
author Grumpy7
date Mon, 27 May 2013 21:37:14 +0200
parents f24fb0d64a5c
children 29a8defbad9e
line wrap: on
line diff
--- a/TileTable.cpp	Mon May 27 21:30:40 2013 +0200
+++ b/TileTable.cpp	Mon May 27 21:37:14 2013 +0200
@@ -254,59 +254,59 @@
     v9 = v84.pProperties[3];
     v2->pTiles[v2->sNumTiles].uBitmapID = v8;
     v2->pTiles[v2->sNumTiles].tileset = Tileset_Grass;
-    if ( _strcmpi(v9, "TTtype_NULL") )
+    if ( _stricmp(v9, "TTtype_NULL") )
     {
-      if ( _strcmpi(v9, "TTtype_Start") )
+      if ( _stricmp(v9, "TTtype_Start") )
       {
-        if ( _strcmpi(v9, "TTtype_Grass") )
+        if ( _stricmp(v9, "TTtype_Grass") )
         {
-          if ( _strcmpi(v9, "TTtype_Cracked") )
+          if ( _stricmp(v9, "TTtype_Cracked") )
           {
-            if ( _strcmpi(v9, "TTtype_Snow") )
+            if ( _stricmp(v9, "TTtype_Snow") )
             {
-              if ( _strcmpi(v9, "TTtype_Sand") )
+              if ( _stricmp(v9, "TTtype_Sand") )
               {
-                if ( _strcmpi(v9, "TTtype_Volcano") )
+                if ( _stricmp(v9, "TTtype_Volcano") )
                 {
-                  if ( _strcmpi(v9, "TTtype_Dirt") )
+                  if ( _stricmp(v9, "TTtype_Dirt") )
                   {
-                    if ( _strcmpi(v9, "TTtype_Water") )
+                    if ( _stricmp(v9, "TTtype_Water") )
                     {
-                      if ( _strcmpi(v9, "TTtype_Tropical") )
+                      if ( _stricmp(v9, "TTtype_Tropical") )
                       {
-                        if ( _strcmpi(v9, "TTtype_Swamp") )
+                        if ( _stricmp(v9, "TTtype_Swamp") )
                         {
-                          if ( _strcmpi(v9, "TTtype_City") )
+                          if ( _stricmp(v9, "TTtype_City") )
                           {
-                            if ( _strcmpi(v9, "TTtype_RoadGrassCobble") )
+                            if ( _stricmp(v9, "TTtype_RoadGrassCobble") )
                             {
-                              if ( _strcmpi(v9, "TTtype_RoadGrassDirt") )
+                              if ( _stricmp(v9, "TTtype_RoadGrassDirt") )
                               {
-                                if ( _strcmpi(v9, "TTtype_RoadCrackedCobble") )
+                                if ( _stricmp(v9, "TTtype_RoadCrackedCobble") )
                                 {
-                                  if ( _strcmpi(v9, "TTtype_RoadCrackedDirt") )
+                                  if ( _stricmp(v9, "TTtype_RoadCrackedDirt") )
                                   {
-                                    if ( _strcmpi(v9, "TTtype_RoadSandCobble") )
+                                    if ( _stricmp(v9, "TTtype_RoadSandCobble") )
                                     {
-                                      if ( _strcmpi(v9, "TTtype_RoadSandDirt") )
+                                      if ( _stricmp(v9, "TTtype_RoadSandDirt") )
                                       {
-                                        if ( _strcmpi(v9, "TTtype_RoadVolcanoCobble") )
+                                        if ( _stricmp(v9, "TTtype_RoadVolcanoCobble") )
                                         {
-                                          if ( _strcmpi(v9, "TTtype_RoadVolcanoDirt") )
+                                          if ( _stricmp(v9, "TTtype_RoadVolcanoDirt") )
                                           {
-                                            if ( _strcmpi(v9, "TTtype_RoadSwampCobble") )
+                                            if ( _stricmp(v9, "TTtype_RoadSwampCobble") )
                                             {
-                                              if ( _strcmpi(v9, "TTtype_RoadSwampDirt") )
+                                              if ( _stricmp(v9, "TTtype_RoadSwampDirt") )
                                               {
-                                                if ( _strcmpi(v9, "TTtype_RoadTropicalCobble") )
+                                                if ( _stricmp(v9, "TTtype_RoadTropicalCobble") )
                                                 {
-                                                  if ( _strcmpi(v9, "TTtype_RoadTropicalDirt") )
+                                                  if ( _stricmp(v9, "TTtype_RoadTropicalDirt") )
                                                   {
-                                                    if ( _strcmpi(v9, "TTtype_RoadSnowCobble") )
+                                                    if ( _stricmp(v9, "TTtype_RoadSnowCobble") )
                                                     {
-                                                      if ( _strcmpi(v9, "TTtype_RoadSnowDirt") )
+                                                      if ( _stricmp(v9, "TTtype_RoadSnowDirt") )
                                                       {
-                                                        if ( !_strcmpi(v9, "TTtype_RoadCityStone") )
+                                                        if ( !_stricmp(v9, "TTtype_RoadCityStone") )
                                                         {
                                                           v34 = (int)&v2->pTiles[v2->sNumTiles].tileset;
                                                           *(char *)v34 |= 0x1Cu;
@@ -464,30 +464,30 @@
     v35 = v84.pProperties[4];
     v2->pTiles[v2->sNumTiles].uSection = 0;
     v2->pTiles[v2->sNumTiles].uAttributes = 0;
-    if ( !_strcmpi(v35, "TTsect_NULL") )
+    if ( !_stricmp(v35, "TTsect_NULL") )
     {
       LOBYTE(v2->pTiles[v2->sNumTiles].uSection) = -1;
 LABEL_152:
       for ( j = 5; j < v84.uPropCount; ++j )
       {
         v72 = v84.pProperties[j];
-        if ( _strcmpi(v84.pProperties[j], "TTattr_Burn") )
+        if ( _stricmp(v84.pProperties[j], "TTattr_Burn") )
         {
-          if ( _strcmpi(v72, "TTattr_Water") )
+          if ( _stricmp(v72, "TTattr_Water") )
           {
-            if ( _strcmpi(v72, "TTattr_Water2") )
+            if ( _stricmp(v72, "TTattr_Water2") )
             {
-              if ( _strcmpi(v72, "TTattr_Block") )
+              if ( _stricmp(v72, "TTattr_Block") )
               {
-                if ( _strcmpi(v72, "TTattr_Repulse") )
+                if ( _stricmp(v72, "TTattr_Repulse") )
                 {
-                  if ( _strcmpi(v72, "TTattr_Flat") )
+                  if ( _stricmp(v72, "TTattr_Flat") )
                   {
-                    if ( _strcmpi(v72, "TTattr_Wave") )
+                    if ( _stricmp(v72, "TTattr_Wave") )
                     {
-                      if ( _strcmpi(v72, "TTattr_NoDraw") )
+                      if ( _stricmp(v72, "TTattr_NoDraw") )
                       {
-                        if ( !_strcmpi(v72, "TTattr_Transition") )
+                        if ( !_stricmp(v72, "TTattr_Transition") )
                         {
                           v80 = (int)&v2->pTiles[v2->sNumTiles].uAttributes;
                           *(short *)v80 |= 0x200u;
@@ -543,245 +543,245 @@
       ++v2->sNumTiles;
       goto LABEL_173;
     }
-    if ( !_strcmpi(v35, "TTsect_Start") )
+    if ( !_stricmp(v35, "TTsect_Start") )
     {
       v36 = (int)&v2->pTiles[v2->sNumTiles].uSection;
       *(char *)v36 |= 0xFEu;
       goto LABEL_152;
     }
-    if ( !_strcmpi(v35, "TTsect_Base1") )
+    if ( !_stricmp(v35, "TTsect_Base1") )
       goto LABEL_152;
-    if ( !_strcmpi(v35, "TTsect_Base2") )
+    if ( !_stricmp(v35, "TTsect_Base2") )
     {
       v37 = (int)&v2->pTiles[v2->sNumTiles].uSection;
       *(char *)v37 |= 1u;
       goto LABEL_152;
     }
-    if ( !_strcmpi(v35, "TTsect_Base3") )
+    if ( !_stricmp(v35, "TTsect_Base3") )
     {
       v38 = (int)&v2->pTiles[v2->sNumTiles].uSection;
       *(char *)v38 |= 2u;
       goto LABEL_152;
     }
-    if ( !_strcmpi(v35, "TTsect_Base4") )
+    if ( !_stricmp(v35, "TTsect_Base4") )
     {
       v39 = (int)&v2->pTiles[v2->sNumTiles].uSection;
       *(char *)v39 |= 3u;
       goto LABEL_152;
     }
-    if ( !_strcmpi(v35, "TTsect_Special1") )
+    if ( !_stricmp(v35, "TTsect_Special1") )
     {
       v40 = (int)&v2->pTiles[v2->sNumTiles].uSection;
       *(char *)v40 |= 4u;
       goto LABEL_152;
     }
-    if ( !_strcmpi(v35, "TTsect_Special2") )
+    if ( !_stricmp(v35, "TTsect_Special2") )
     {
       v41 = (int)&v2->pTiles[v2->sNumTiles].uSection;
       *(char *)v41 |= 5u;
       goto LABEL_152;
     }
-    if ( !_strcmpi(v35, "TTsect_Special3") )
+    if ( !_stricmp(v35, "TTsect_Special3") )
     {
       v42 = (int)&v2->pTiles[v2->sNumTiles].uSection;
       *(char *)v42 |= 6u;
       goto LABEL_152;
     }
-    if ( !_strcmpi(v35, "TTsect_Special4") )
+    if ( !_stricmp(v35, "TTsect_Special4") )
     {
       v43 = (int)&v2->pTiles[v2->sNumTiles].uSection;
       *(char *)v43 |= 7u;
       goto LABEL_152;
     }
-    if ( !_strcmpi(v35, "TTsect_Special5") )
+    if ( !_stricmp(v35, "TTsect_Special5") )
     {
       v44 = (int)&v2->pTiles[v2->sNumTiles].uSection;
       *(char *)v44 |= 8u;
       goto LABEL_152;
     }
-    if ( !_strcmpi(v35, "TTsect_Special6") )
+    if ( !_stricmp(v35, "TTsect_Special6") )
     {
       v45 = (int)&v2->pTiles[v2->sNumTiles].uSection;
       *(char *)v45 |= 9u;
       goto LABEL_152;
     }
-    if ( !_strcmpi(v35, "TTsect_Special7") )
+    if ( !_stricmp(v35, "TTsect_Special7") )
     {
       v46 = (int)&v2->pTiles[v2->sNumTiles].uSection;
       *(char *)v46 |= 0xAu;
       goto LABEL_152;
     }
-    if ( !_strcmpi(v35, "TTsect_Special8") )
+    if ( !_stricmp(v35, "TTsect_Special8") )
     {
       v47 = (int)&v2->pTiles[v2->sNumTiles].uSection;
       *(char *)v47 |= 0xBu;
       goto LABEL_152;
     }
-    if ( !_strcmpi(v35, "TTsect_NE1") )
+    if ( !_stricmp(v35, "TTsect_NE1") )
       goto LABEL_130;
-    if ( !_strcmpi(v35, "TTsect_NW1") )
+    if ( !_stricmp(v35, "TTsect_NW1") )
       goto LABEL_134;
-    if ( !_strcmpi(v35, "TTsect_SE1") )
+    if ( !_stricmp(v35, "TTsect_SE1") )
       goto LABEL_130;
-    if ( !_strcmpi(v35, "TTsect_SW1") )
+    if ( !_stricmp(v35, "TTsect_SW1") )
       goto LABEL_134;
-    if ( !_strcmpi(v35, "TTsect_E1") )
+    if ( !_stricmp(v35, "TTsect_E1") )
       goto LABEL_138;
-    if ( !_strcmpi(v35, "TTsect_W1") )
+    if ( !_stricmp(v35, "TTsect_W1") )
       goto LABEL_140;
-    if ( !_strcmpi(v35, "TTsect_N1") )
+    if ( !_stricmp(v35, "TTsect_N1") )
       goto LABEL_142;
-    if ( !_strcmpi(v35, "TTsect_S1") )
+    if ( !_stricmp(v35, "TTsect_S1") )
       goto LABEL_144;
-    if ( !_strcmpi(v35, "TTsect_XNE1") )
+    if ( !_stricmp(v35, "TTsect_XNE1") )
       goto LABEL_146;
-    if ( _strcmpi(v35, "TTsect_XNW1") )
+    if ( _stricmp(v35, "TTsect_XNW1") )
     {
-      if ( !_strcmpi(v35, "TTsect_XSE1") )
+      if ( !_stricmp(v35, "TTsect_XSE1") )
         goto LABEL_146;
-      if ( _strcmpi(v35, "TTsect_XSW1") )
+      if ( _stricmp(v35, "TTsect_XSW1") )
       {
-        if ( !_strcmpi(v35, "TTsect_CROS") )
+        if ( !_stricmp(v35, "TTsect_CROS") )
         {
 LABEL_151:
           v70 = (int)&v2->pTiles[v2->sNumTiles].uAttributes;
           *(short *)v70 |= 0x200u;
           goto LABEL_152;
         }
-        if ( !_strcmpi(v35, "TTsect_NS") )
+        if ( !_stricmp(v35, "TTsect_NS") )
         {
           v48 = (int)&v2->pTiles[v2->sNumTiles].uSection;
           *(char *)v48 |= 1u;
           goto LABEL_151;
         }
-        if ( !_strcmpi(v35, "TTsect_EW") )
+        if ( !_stricmp(v35, "TTsect_EW") )
         {
           v49 = (int)&v2->pTiles[v2->sNumTiles].uSection;
           *(char *)v49 |= 2u;
           goto LABEL_151;
         }
-        if ( !_strcmpi(v35, "TTsect_N_E") )
+        if ( !_stricmp(v35, "TTsect_N_E") )
         {
           v50 = (int)&v2->pTiles[v2->sNumTiles].uSection;
           *(char *)v50 |= 3u;
           goto LABEL_151;
         }
-        if ( !_strcmpi(v35, "TTsect_N_W") )
+        if ( !_stricmp(v35, "TTsect_N_W") )
         {
           v51 = (int)&v2->pTiles[v2->sNumTiles].uSection;
           *(char *)v51 |= 4u;
           goto LABEL_151;
         }
-        if ( !_strcmpi(v35, "TTsect_S_E") )
+        if ( !_stricmp(v35, "TTsect_S_E") )
         {
           v52 = (int)&v2->pTiles[v2->sNumTiles].uSection;
           *(char *)v52 |= 5u;
           goto LABEL_151;
         }
-        if ( !_strcmpi(v35, "TTsect_S_W") )
+        if ( !_stricmp(v35, "TTsect_S_W") )
         {
           v53 = (int)&v2->pTiles[v2->sNumTiles].uSection;
           *(char *)v53 |= 6u;
           goto LABEL_151;
         }
-        if ( !_strcmpi(v35, "TTsect_NS_E") )
+        if ( !_stricmp(v35, "TTsect_NS_E") )
         {
           v54 = (int)&v2->pTiles[v2->sNumTiles].uSection;
           *(char *)v54 |= 7u;
           goto LABEL_151;
         }
-        if ( !_strcmpi(v35, "TTsect_NS_W") )
+        if ( !_stricmp(v35, "TTsect_NS_W") )
         {
           v55 = (int)&v2->pTiles[v2->sNumTiles].uSection;
           *(char *)v55 |= 8u;
           goto LABEL_151;
         }
-        if ( !_strcmpi(v35, "TTsect_EW_N") )
+        if ( !_stricmp(v35, "TTsect_EW_N") )
         {
           v56 = (int)&v2->pTiles[v2->sNumTiles].uSection;
           *(char *)v56 |= 9u;
           goto LABEL_151;
         }
-        if ( !_strcmpi(v35, "TTsect_EW_S") )
+        if ( !_stricmp(v35, "TTsect_EW_S") )
         {
           v57 = (int)&v2->pTiles[v2->sNumTiles].uSection;
           *(char *)v57 |= 0xAu;
           goto LABEL_151;
         }
-        if ( !_strcmpi(v35, "TTsect_NCAP") )
+        if ( !_stricmp(v35, "TTsect_NCAP") )
         {
           v58 = (int)&v2->pTiles[v2->sNumTiles].uSection;
           *(char *)v58 |= 0xBu;
           goto LABEL_151;
         }
-        if ( !_strcmpi(v35, "TTsect_ECAP") )
+        if ( !_stricmp(v35, "TTsect_ECAP") )
         {
 LABEL_130:
           v59 = (int)&v2->pTiles[v2->sNumTiles].uSection;
           *(char *)v59 |= 0xCu;
           goto LABEL_151;
         }
-        if ( !_strcmpi(v35, "TTsect_SCAP") )
+        if ( !_stricmp(v35, "TTsect_SCAP") )
         {
           v60 = (int)&v2->pTiles[v2->sNumTiles].uSection;
           *(char *)v60 |= 0xDu;
           goto LABEL_151;
         }
-        if ( !_strcmpi(v35, "TTsect_WCAP") )
+        if ( !_stricmp(v35, "TTsect_WCAP") )
         {
 LABEL_134:
           v61 = (int)&v2->pTiles[v2->sNumTiles].uSection;
           *(char *)v61 |= 0xEu;
           goto LABEL_151;
         }
-        if ( !_strcmpi(v35, "TTsect_DN") )
+        if ( !_stricmp(v35, "TTsect_DN") )
         {
           v62 = (int)&v2->pTiles[v2->sNumTiles].uSection;
           *(char *)v62 |= 0xFu;
           goto LABEL_151;
         }
-        if ( !_strcmpi(v35, "TTsect_DS") )
+        if ( !_stricmp(v35, "TTsect_DS") )
         {
 LABEL_138:
           v63 = (int)&v2->pTiles[v2->sNumTiles].uSection;
           *(char *)v63 |= 0x10u;
           goto LABEL_151;
         }
-        if ( !_strcmpi(v35, "TTsect_DW") )
+        if ( !_stricmp(v35, "TTsect_DW") )
         {
 LABEL_140:
           v64 = (int)&v2->pTiles[v2->sNumTiles].uSection;
           *(char *)v64 |= 0x11u;
           goto LABEL_151;
         }
-        if ( !_strcmpi(v35, "TTsect_DE") )
+        if ( !_stricmp(v35, "TTsect_DE") )
         {
 LABEL_142:
           v65 = (int)&v2->pTiles[v2->sNumTiles].uSection;
           *(char *)v65 |= 0x12u;
           goto LABEL_151;
         }
-        if ( !_strcmpi(v35, "TTsect_DSW") )
+        if ( !_stricmp(v35, "TTsect_DSW") )
         {
 LABEL_144:
           v66 = (int)&v2->pTiles[v2->sNumTiles].uSection;
           *(char *)v66 |= 0x13u;
           goto LABEL_151;
         }
-        if ( !_strcmpi(v35, "TTsect_DNE") )
+        if ( !_stricmp(v35, "TTsect_DNE") )
         {
 LABEL_146:
           v67 = (int)&v2->pTiles[v2->sNumTiles].uSection;
           *(char *)v67 |= 0x14u;
           goto LABEL_151;
         }
-        if ( !_strcmpi(v35, "TTsect_DSE") )
+        if ( !_stricmp(v35, "TTsect_DSE") )
         {
           v68 = (int)&v2->pTiles[v2->sNumTiles].uSection;
           *(char *)v68 |= 0x15u;
           goto LABEL_151;
         }
-        if ( _strcmpi(v35, "TTsect_DNW") )
+        if ( _stricmp(v35, "TTsect_DNW") )
           goto LABEL_152;
       }
     }