|
@@ -588,12 +588,25 @@ int RatedCurrentParsing(char *pModuleName, void *pDestStruct)
|
|
for (i = 0; i < sizeof(pParsingInfo->ParsingInfo) / sizeof(RateCurInfo); i++) {
|
|
for (i = 0; i < sizeof(pParsingInfo->ParsingInfo) / sizeof(RateCurInfo); i++) {
|
|
pGunRateCurInfo = (RateCurInfo *)&pParsingInfo->ParsingInfo[pParsingInfo->GetGunCount];
|
|
pGunRateCurInfo = (RateCurInfo *)&pParsingInfo->ParsingInfo[pParsingInfo->GetGunCount];
|
|
|
|
|
|
- if (i == 0) {
|
|
|
|
- gunTypeIndex = DC_ONE;
|
|
|
|
- } else if (i == 1) {
|
|
|
|
- gunTypeIndex = DC_SEC;
|
|
|
|
- } else if (i == 2) {
|
|
|
|
- gunTypeIndex = AC_ONE;
|
|
|
|
|
|
+ if(pModuleName[8]=='0')
|
|
|
|
+ {
|
|
|
|
+ if (i == 0) {
|
|
|
|
+ gunTypeIndex = DC_ONE;
|
|
|
|
+ } else if (i == 1) {
|
|
|
|
+ gunTypeIndex = DC_SEC;
|
|
|
|
+ } else if (i == 2) {
|
|
|
|
+ gunTypeIndex = AC_ONE;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ else
|
|
|
|
+ {
|
|
|
|
+ if (i == 0) {
|
|
|
|
+ gunTypeIndex = DC_ONE;
|
|
|
|
+ } else if (i == 1) {
|
|
|
|
+ gunTypeIndex = AC_ONE;
|
|
|
|
+ } else if (i == 2) {
|
|
|
|
+ gunTypeIndex = DC_SEC;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
strncpy(gunType, &pModuleName[gunTypeIndex], 1);
|
|
strncpy(gunType, &pModuleName[gunTypeIndex], 1);
|