comparison mm7_4.cpp @ 1217:b237a61e61d3

sprintf didn't use .data member of new arrays
author Grumpy7
date Sun, 09 Jun 2013 17:35:10 +0200
parents fd3bea473c0c
children 8ee5f1554b64
comparison
equal deleted inserted replaced
1216:de876af42e0d 1217:b237a61e61d3
7291 v29 = (char *)&pMonsterStats + 88 * word_F8B1A0; 7291 v29 = (char *)&pMonsterStats + 88 * word_F8B1A0;
7292 v30 = TargetColor(0xFFu, 0xFFu, 0xFFu); 7292 v30 = TargetColor(0xFFu, 0xFFu, 0xFFu);
7293 v31 = *(int *)v29; 7293 v31 = *(int *)v29;
7294 v32 = TargetColor(0xFFu, 0xFFu, 0x9Bu); 7294 v32 = TargetColor(0xFFu, 0xFFu, 0x9Bu);
7295 sprintfex(pTmpBuf.data(), "\f%05d%s\f%05d", v32, v31, v30); 7295 sprintfex(pTmpBuf.data(), "\f%05d%s\f%05d", v32, v31, v30);
7296 sprintfex(pTmpBuf2.data(), dword_F8B1A4, pTmpBuf, 100 * (unsigned __int8)v29[8]); 7296 sprintfex(pTmpBuf2.data(), dword_F8B1A4, pTmpBuf.data(), 100 * (unsigned __int8)v29[8]);
7297 current_npc_text = pTmpBuf2.data(); 7297 current_npc_text = pTmpBuf2.data();
7298 v15 = ""; 7298 v15 = "";
7299 goto LABEL_45; 7299 goto LABEL_45;
7300 } 7300 }
7301 if ( v28 != 10 ) 7301 if ( v28 != 10 )
7334 v15 = ""; 7334 v15 = "";
7335 } 7335 }
7336 if ( uDialogueType != 84 ) 7336 if ( uDialogueType != 84 )
7337 goto LABEL_49; 7337 goto LABEL_49;
7338 sprintf(pTmpBuf.data(), format_4E2D80, v55, pItemsTable->pItems[contract_approved].pUnidentifiedName); 7338 sprintf(pTmpBuf.data(), format_4E2D80, v55, pItemsTable->pItems[contract_approved].pUnidentifiedName);
7339 sprintf(pTmpBuf2.data(), current_npc_text, pTmpBuf); 7339 sprintf(pTmpBuf2.data(), current_npc_text, pTmpBuf.data());
7340 current_npc_text = pTmpBuf2.data(); 7340 current_npc_text = pTmpBuf2.data();
7341 goto LABEL_45; 7341 goto LABEL_45;
7342 } 7342 }
7343 v21 = v20 - 1; 7343 v21 = v20 - 1;
7344 if ( !v21 ) 7344 if ( !v21 )