Mercurial > mm7
comparison Items.cpp @ 1225:42b41aaecd87
Слияние
author | Ritor1 |
---|---|
date | Wed, 05 Jun 2013 21:00:45 +0600 |
parents | 23632c91ed0a 29a8defbad9e |
children | 182b910c528d |
comparison
equal
deleted
inserted
replaced
1224:23632c91ed0a | 1225:42b41aaecd87 |
---|---|
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 } |