comparison mm7_1.cpp @ 237:2799737f8a74

more text parsers refactor
author Gloval
date Mon, 18 Feb 2013 00:47:36 +0400
parents c879446b4a22
children b070b83a897b
comparison
equal deleted inserted replaced
234:47e06334c564 237:2799737f8a74
3184 else 3184 else
3185 { 3185 {
3186 v38 = v121->dword_000334_unique_name; 3186 v38 = v121->dword_000334_unique_name;
3187 v77 = 2000; 3187 v77 = 2000;
3188 if ( v38 ) 3188 if ( v38 )
3189 v72 = (char *)*(&pMonsterStats->pPlacement.uNumStrings + v38); 3189 v72 = pMonsterStats->pPlaceStrings[v38];
3190 else 3190 else
3191 v72 = pMonsterStats->pInfos[v121->pMonsterInfo.uID].pName; 3191 v72 = pMonsterStats->pInfos[v121->pMonsterInfo.uID].pName;
3192 } 3192 }
3193 strncpy(pTmpBuf, v72, v77); 3193 strncpy(pTmpBuf, v72, v77);
3194 LABEL_59: 3194 LABEL_59:
4390 return 0; 4390 return 0;
4391 *(float *)&sRotY = 0.0; 4391 *(float *)&sRotY = 0.0;
4392 v2 = pMapStats->GetMapInfo(pCurrentMapName); 4392 v2 = pMapStats->GetMapInfo(pCurrentMapName);
4393 if ( !(*v1 & 1) || !v2 ) 4393 if ( !(*v1 & 1) || !v2 )
4394 goto LABEL_12; 4394 goto LABEL_12;
4395 if ( pPlayers[uActiveCharacter]->GetDisarmTrap() < 2 * pMapStats->pInfos[v2].field_2D ) 4395 if ( pPlayers[uActiveCharacter]->GetDisarmTrap() < 2 * pMapStats->pInfos[v2].LockX5 )
4396 { 4396 {
4397 v29 = 811; 4397 v29 = 811;
4398 v30 = 812; 4398 v30 = 812;
4399 v31 = 813; 4399 v31 = 813;
4400 v32 = 814; 4400 v32 = 814;
5182 } 5182 }
5183 pActor = &pActors[v19]; 5183 pActor = &pActors[v19];
5184 v28 = pTmpBuf; 5184 v28 = pTmpBuf;
5185 v29 = pActor->dword_000334_unique_name; 5185 v29 = pActor->dword_000334_unique_name;
5186 if ( v29 ) 5186 if ( v29 )
5187 v40 = (char *)*(&pMonsterStats->pPlacement.uNumStrings + v29); 5187 v40 = pMonsterStats->pPlaceStrings[v29];
5188 else 5188 else
5189 v40 = pMonsterStats->pInfos[pActor->pMonsterInfo.uID].pName; 5189 v40 = pMonsterStats->pInfos[pActor->pMonsterInfo.uID].pName;
5190 strncpy(pTmpBuf, v40, 0x7D0u); 5190 strncpy(pTmpBuf, v40, 0x7D0u);
5191 } 5191 }
5192 v26 = v28; 5192 v26 = v28;