Mercurial > mm7
comparison 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 |
comparison
equal
deleted
inserted
replaced
1164:6b911d7e09a5 | 1165:29a8defbad9e |
---|---|
1 #ifdef _MSC_VER | |
2 #define _CRT_SECURE_NO_WARNINGS | |
3 #endif | |
4 | |
1 #include <stdlib.h> | 5 #include <stdlib.h> |
2 #include <assert.h> | 6 #include <assert.h> |
3 | 7 |
4 #include "Items.h" | 8 #include "Items.h" |
5 #include "MapInfo.h" | 9 #include "MapInfo.h" |
788 pItems[item_counter]._bonus_type=0; | 792 pItems[item_counter]._bonus_type=0; |
789 if (pItems[item_counter].uMaterial==MATERIAL_SPECIAL) | 793 if (pItems[item_counter].uMaterial==MATERIAL_SPECIAL) |
790 { | 794 { |
791 for(int ii=0; ii<24; ++ii) | 795 for(int ii=0; ii<24; ++ii) |
792 { | 796 { |
793 if (stricmp(test_string,pEnchantments[ii].pBonusStat)) | 797 if (_stricmp(test_string,pEnchantments[ii].pBonusStat)) |
794 { | 798 { |
795 pItems[item_counter]._bonus_type=ii+1; | 799 pItems[item_counter]._bonus_type=ii+1; |
796 break; | 800 break; |
797 } | 801 } |
798 } | 802 } |
799 if (!pItems[item_counter]._bonus_type) | 803 if (!pItems[item_counter]._bonus_type) |
800 { | 804 { |
801 for(int ii=0; ii<72; ++ii) | 805 for(int ii=0; ii<72; ++ii) |
802 { | 806 { |
803 if (stricmp(test_string,pSpecialEnchantments[ii].pBonusStatement)) | 807 if (_stricmp(test_string,pSpecialEnchantments[ii].pBonusStatement)) |
804 { | 808 { |
805 pItems[item_counter]._additional_value=ii+1; | 809 pItems[item_counter]._additional_value=ii+1; |
806 } | 810 } |
807 } | 811 } |
808 } | 812 } |