diff Items.cpp @ 1165:29a8defbad9e

temporary _CRT_SECURE_NO_WARNINGS to remove some warnings removed double LOBYTE, LOWORD etd macro definitions swprintf called with string size parameter ErrD3D with too many params fix 1 or 2 other minor fixes
author Grumpy7
date Tue, 04 Jun 2013 03:21:21 +0200
parents 5d5c78088274
children 0dbf6c4dd029 42b41aaecd87
line wrap: on
line diff
--- a/Items.cpp	Tue Jun 04 02:03:43 2013 +0200
+++ b/Items.cpp	Tue Jun 04 03:21:21 2013 +0200
@@ -1,3 +1,7 @@
+#ifdef _MSC_VER
+#define _CRT_SECURE_NO_WARNINGS
+#endif
+
 #include <stdlib.h>
 #include <assert.h>
 
@@ -790,7 +794,7 @@
 						{
 						for(int ii=0; ii<24; ++ii)
 							{
-							if (stricmp(test_string,pEnchantments[ii].pBonusStat))
+							if (_stricmp(test_string,pEnchantments[ii].pBonusStat))
 								{
 								pItems[item_counter]._bonus_type=ii+1;
 								break;
@@ -800,7 +804,7 @@
 							{
 							for(int ii=0; ii<72; ++ii)
 								{
-								if (stricmp(test_string,pSpecialEnchantments[ii].pBonusStatement))
+								if (_stricmp(test_string,pSpecialEnchantments[ii].pBonusStatement))
 									{
 									pItems[item_counter]._additional_value=ii+1;
 									}