comparison Items.cpp @ 1018:9ac94d00012e

Merge
author Grumpy7
date Tue, 21 May 2013 02:24:31 +0200
parents c45d51b3f4f4 e865f349aa41
children 7033eb155558
comparison
equal deleted inserted replaced
1017:af20650a052f 1018:9ac94d00012e
911 ++item_counter; 911 ++item_counter;
912 if (item_counter>618) 912 if (item_counter>618)
913 break; 913 break;
914 } 914 }
915 915
916 //ChanceByTreasureLvl Summ - anti cheating? 916 //ChanceByTreasureLvl Summ - to calculate chance
917 memset(&uChanceByTreasureLvlSumm, 0, 24); 917 memset(&uChanceByTreasureLvlSumm, 0, 24);
918 for(i=0;i<6;++i) 918 for(i=0;i<6;++i)
919 { 919 {
920 for (j=1;j<item_counter;++j) 920 for (j=1;j<item_counter;++j)
921 uChanceByTreasureLvlSumm[i]+=pItems[j].uChanceByTreasureLvl[i]; 921 uChanceByTreasureLvlSumm[i]+=pItems[j].uChanceByTreasureLvl[i];