changeset 99:6305c1cd9f6e

Merge
author Nomad
date Sun, 04 Nov 2012 04:00:06 +0200
parents f76e4ea4a224 (current diff) d7e68aebe0b3 (diff)
children 67f843a23f8b 9eac46182d8f
files Indoor.cpp Outdoor.cpp PaletteManager.h mm7_3.cpp mm7_4.cpp
diffstat 9 files changed, 131 insertions(+), 131 deletions(-) [+]
line wrap: on
line diff
--- a/Monsters.cpp	Sun Nov 04 03:58:34 2012 +0200
+++ b/Monsters.cpp	Sun Nov 04 04:00:06 2012 +0200
@@ -1266,7 +1266,7 @@
                         v76->field_3C_some_special_attack = v78;
                         if ( v78 == -1 )
                         {
-                          sprintfex(Src, "Can't create random monster: '%s' See MapStats!", Src);
+                          sprintf(Src, "Can't create random monster: '%s' See MapStats!", Src);
                           MessageBoxA(nullptr, Src, "E:\\WORK\\MSDEV\\MM7\\MM7\\Code\\Itemdata.cpp:2239", 0);
                         }
                       }
--- a/PaletteManager.cpp	Sun Nov 04 03:58:34 2012 +0200
+++ b/PaletteManager.cpp	Sun Nov 04 04:00:06 2012 +0200
@@ -329,7 +329,7 @@
 
   v2 = this;
   v3 = (char *)this + 768 * a2;
-  if ( this->pPalette_tintColor[0] || this->pPalette_tintColor[1] || this->pPalette_tintColor[2] )
+  if ( this->field_267AD3 || this->field_267AD4 || this->field_267AD5 )
   {
     v8 = 0;
     i = 0;
@@ -338,13 +338,13 @@
       v9 = (float *)((char *)v63 + v8);
       v10 = (float *)((char *)a6 + v8);
       v11 = (float *)((char *)v64 + v8);
-      v12 = v2->pPalette_tintColor[1];
-      LODWORD(v75) = v2->pPalette_tintColor[2] + (unsigned __int8)v3[2];
+      v12 = v2->field_267AD4;
+      LODWORD(v75) = v2->field_267AD5 + (unsigned __int8)v3[2];
       v13 = v12 + (unsigned __int8)v3[1];
       LODWORD(v14) = (unsigned __int8)*v3;
       v15 = (double)SLODWORD(v75) * 0.00196078431372549;
       LODWORD(v75) = v13;
-      LODWORD(v75) = LODWORD(v14) + v2->pPalette_tintColor[0];
+      LODWORD(v75) = LODWORD(v14) + v2->field_267AD3;
       v16 = (double)v13 * 0.00196078431372549;
       v17 = (double)SLODWORD(v75) * 0.00196078431372549;
       RGB2HSV(v11, v9, v17, v16, v15, v10);
@@ -500,12 +500,12 @@
     i += 4;
   }
   while ( v18 ^ v19 );
-  v45 = v2->pPalette_mistColor[0];
-  if ( v45 || v2->pPalette_mistColor[1] || v2->pPalette_mistColor[2] )
+  v45 = v2->field_267AD0;
+  if ( v45 || v2->field_267AD1 || v2->field_267AD2 )
   {
     v46 = (double)v45;
-    v80 = v2->pPalette_mistColor[1];
-    v47 = v2->pPalette_mistColor[2];
+    v80 = v2->field_267AD1;
+    v47 = v2->field_267AD2;
     v70 = v46 * 0.00392156862745098;
     *((float *)&v71 + 1) = (double)v80 * 0.00392156862745098;
     v75 = (double)v47 * 0.00392156862745098;
@@ -538,7 +538,7 @@
         a2a = a2a * 31.0;
         a3 = a3 * 31.0;
       }
-      if ( v2->pPalette_mistColor[0] || v2->pPalette_mistColor[1] || v2->pPalette_mistColor[2] )
+      if ( v2->field_267AD0 || v2->field_267AD1 || v2->field_267AD2 )
       {
         v55 = (double)v72 * 0.03225806451612903;
         v52 = (signed __int64)((double)(1 << v2->uNumTargetRBits) * v70 * v55 + a1 * (1.0 - v55));
--- a/Player.cpp	Sun Nov 04 03:58:34 2012 +0200
+++ b/Player.cpp	Sun Nov 04 04:00:06 2012 +0200
@@ -1515,7 +1515,7 @@
   }
   else
   {
-    sprintfex(pTmpBuf, pGlobalTXT_LocalizationStrings[67], this->pName);
+    sprintf(pTmpBuf, pGlobalTXT_LocalizationStrings[67], this->pName);
     ShowStatusBarString(pTmpBuf, 2u);
     result = 0;
   }
@@ -3117,13 +3117,13 @@
   {
     v5 = v3;
     v6 = player__getmeleedamagestring_static_buff;
-    sprintfex(player__getmeleedamagestring_static_buff, "%d", v5);
+    sprintf(player__getmeleedamagestring_static_buff, "%d", v5);
   }
   else
   {
     v7 = v3;
     v6 = player__getmeleedamagestring_static_buff;
-    sprintfex(player__getmeleedamagestring_static_buff, "%d - %d", v7, v4);
+    sprintf(player__getmeleedamagestring_static_buff, "%d - %d", v7, v4);
   }
   v8 = v1->pEquipment.uMainHand;
   if ( v8 )
@@ -3171,13 +3171,13 @@
     {
       v6 = v3;
       v5 = player__getrangeddamagestring_static_buff;
-      sprintfex(player__getrangeddamagestring_static_buff, "%d", v6);
+      sprintf(player__getrangeddamagestring_static_buff, "%d", v6);
     }
     else
     {
       v7 = v3;
       v5 = player__getrangeddamagestring_static_buff;
-      sprintfex(player__getrangeddamagestring_static_buff, "%d - %d", v7, v4);
+      sprintf(player__getrangeddamagestring_static_buff, "%d - %d", v7, v4);
     }
   }
   else
@@ -3551,7 +3551,7 @@
             party_finds_gold(v19, 2);
             v22 = v19;
             v23 = pTmpBuf2;
-            sprintfex(pTmpBuf2, pGlobalTXT_LocalizationStrings[302], v31->pName, v22);
+            sprintf(pTmpBuf2, pGlobalTXT_LocalizationStrings[302], v31->pName, v22);
 LABEL_43:
             ShowStatusBarString(v23, 2u);
             return _steal_perma;
@@ -3598,7 +3598,7 @@
               v16 = v27.uItemID;
             }
             sub_421B2C_PlaceInInventory_or_DropPickedItem();
-            sprintfex(
+            sprintf(
               pTmpBuf2,
               pGlobalTXT_LocalizationStrings[304],
               v31->pName,
@@ -3615,7 +3615,7 @@
       v25 = pGlobalTXT_LocalizationStrings[377];
     }
     v23 = pTmpBuf2;
-    sprintfex(pTmpBuf2, v25, v26);
+    sprintf(pTmpBuf2, v25, v26);
     goto LABEL_43;
   }
   return 0;
@@ -7430,7 +7430,7 @@
               LODWORD(v3->uExperience) += 2500 * thisa;
               HIDWORD(v3->uExperience) += ((unsigned __int64)(signed int)(2500 * thisa) >> 32) + v7;
 LABEL_38:
-              sprintfex(pTmpBuf, "+%u %s", v54, v63);
+              sprintf(pTmpBuf, "+%u %s", v54, v63);
               goto LABEL_54;
             case 0xBu:
               v8 = rand() % 6;
@@ -7488,7 +7488,7 @@
               v53 = v74;
               v49 = thisa;
 LABEL_53:
-              sprintfex(pTmpBuf, "+%u %s %s", v49, v53, v62);
+              sprintf(pTmpBuf, "+%u %s %s", v49, v53, v62);
 LABEL_54:
               ShowStatusBarString(pTmpBuf, 2u);
               pMouse->RemoveHoldingItem();
@@ -7619,7 +7619,7 @@
       v66 = pParty->pPickedItem.GetDisplayName();
       v57 = pGlobalTXT_LocalizationStrings[380];
 LABEL_72:
-      sprintfex(pTmpBuf, v57, v66);
+      sprintf(pTmpBuf, v57, v66);
       ShowStatusBarString(pTmpBuf, 2u);
 LABEL_92:
       v61 = v4;
@@ -7661,7 +7661,7 @@
             if ( v75 > v21 || !*v17 )
             {
               v22 = pParty->pPickedItem.GetDisplayName();
-              sprintfex(pTmpBuf, pGlobalTXT_LocalizationStrings[381], v22);
+              sprintf(pTmpBuf, pGlobalTXT_LocalizationStrings[381], v22);
               ShowStatusBarString(pTmpBuf, 2u);
               v65 = 0;
               v56 = 20;
@@ -8496,14 +8496,14 @@
         case VAR_RandomGold:
           v6 = rand() % a3 + 1;
           Party::SetGold(v6);
-          sprintfex(pTmpBuf, pGlobalTXT_LocalizationStrings[500], v6);// You have %lu gold
+          sprintf(pTmpBuf, pGlobalTXT_LocalizationStrings[500], v6);// You have %lu gold
           ShowStatusBarString(pTmpBuf, 2u);
           GameUI_DrawFoodAndGold();
           return;
         case VAR_RandomFood:
           v7 = rand() % a3 + 1;
           Party::SetFood(v7);
-          sprintfex(pTmpBuf, pGlobalTXT_LocalizationStrings[501], v7);// You have %lu food
+          sprintf(pTmpBuf, pGlobalTXT_LocalizationStrings[501], v7);// You have %lu food
           ShowStatusBarString(pTmpBuf, 2u);
           GameUI_DrawFoodAndGold();
           goto LABEL_124;
@@ -8911,7 +8911,7 @@
                 val = 1;
               v7 = rand() % val + 1;
               Party::GiveFood(v7);
-              sprintfex(pTmpBuf, pGlobalTXT_LocalizationStrings[502], v7);// You find %lu food
+              sprintf(pTmpBuf, pGlobalTXT_LocalizationStrings[502], v7);// You find %lu food
               ShowStatusBarString(pTmpBuf, 2u);
               GameUI_DrawFoodAndGold();
               goto _play_sound;
@@ -9040,7 +9040,7 @@
               goto LABEL_82;
             case VAR_FixedFood:
               Party::GiveFood(val);
-              sprintfex(pTmpBuf, pGlobalTXT_LocalizationStrings[502], val);
+              sprintf(pTmpBuf, pGlobalTXT_LocalizationStrings[502], val);
               ShowStatusBarString(pTmpBuf, 2u);
               if ( pParty->uNumFoodRations > 0xFFFF )
                 Party::SetFood(0xFFFFu);
@@ -9555,7 +9555,7 @@
           if ( v6 > pParty->uNumGold )
             v6 = pParty->uNumGold;
           Party::TakeGold(v6);
-          sprintfex(pTmpBuf, pGlobalTXT_LocalizationStrings[503], v6);
+          sprintf(pTmpBuf, pGlobalTXT_LocalizationStrings[503], v6);
           ShowStatusBarString(pTmpBuf, 2u);
           GameUI_DrawFoodAndGold();
           return;
@@ -9564,7 +9564,7 @@
           if ( v7 > pParty->uNumFoodRations )
             v7 = pParty->uNumFoodRations;
           Party::TakeFood(v7);
-          sprintfex(pTmpBuf, pGlobalTXT_LocalizationStrings[504], v7);
+          sprintf(pTmpBuf, pGlobalTXT_LocalizationStrings[504], v7);
           ShowStatusBarString(pTmpBuf, 2u);
           GameUI_DrawFoodAndGold();
           goto LABEL_17;
--- a/Render.cpp	Sun Nov 04 03:58:34 2012 +0200
+++ b/Render.cpp	Sun Nov 04 04:00:06 2012 +0200
@@ -3848,7 +3848,7 @@
     if (FAILED(pHost->SetCooperativeLevel(hWnd, DDSCL_MULTITHREADED | DDSCL_NORMAL)))
     {
       v23 = "Init - Failed to set cooperative level.\n";
-      sprintfex(pErrorMessage, v23);
+      sprintf(pErrorMessage, v23);
 LABEL_65:
       if (pHost)
       {
@@ -3951,7 +3951,7 @@
     }
 LABEL_36:
     v23 = "Init - Failed to create front buffer.\n";
-    sprintfex(pErrorMessage, v23);
+    sprintf(pErrorMessage, v23);
     goto LABEL_65;
   }
   if ( uDeviceID == 1 )
@@ -3961,13 +3961,13 @@
   if (pHost->SetCooperativeLevel(hWnd, v26) )
   {
     v23 = "Init - Failed to set cooperative level.\n";
-    sprintfex(pErrorMessage, v23);
+    sprintf(pErrorMessage, v23);
     goto LABEL_65;
   }
   if (pHost->SetDisplayMode(640u, 480u, 16u, 0, 0) )
   {
     v23 = "Init - Failed to set display mode.\n";
-    sprintfex(pErrorMessage, v23);
+    sprintf(pErrorMessage, v23);
     goto LABEL_65;
   }
 
@@ -4759,7 +4759,7 @@
   v2 = 0;
   if ( !this->pRenderD3D || this->field_40110 )
   {
-    sprintfex(Filename, "screen%0.2i.pcx", dword_4EFA80++ % 100);
+    sprintf(Filename, "screen%0.2i.pcx", dword_4EFA80++ % 100);
     File = fopen(Filename, "wb");
     if ( File )
     {
--- a/Sprites.cpp	Sun Nov 04 03:58:34 2012 +0200
+++ b/Sprites.cpp	Sun Nov 04 04:00:06 2012 +0200
@@ -134,7 +134,7 @@
                   v25 = pSpriteSFrames[v3].pTextureName;
                   v22 = "%s0";
 LABEL_15:
-                  sprintfex(Size, v22, v25);
+                  sprintf(Size, v22, v25);
                   break;
                 default:
                   break;
@@ -181,7 +181,7 @@
                 v26 = pSpriteSFrames[v3].pTextureName;
                 v23 = "%s1";
 LABEL_26:
-                sprintfex(Size, v23, v26);
+                sprintf(Size, v23, v26);
                 break;
               default:
                 break;
--- a/Texture.cpp	Sun Nov 04 03:58:34 2012 +0200
+++ b/Texture.cpp	Sun Nov 04 04:00:06 2012 +0200
@@ -452,7 +452,7 @@
   File = v3;
   if ( !v3 )
   {
-    sprintfex(pTmpBuf, "Unable to load %s", pContainer);
+    sprintf(pTmpBuf, "Unable to load %s", pContainer);
     Abortf(pTmpBuf);
   }
   fread(&DstBuf, 1u, 0x30u, v3);
@@ -542,7 +542,7 @@
   File = v4;
   if ( !v4 )
   {
-    sprintfex(pTmpBuf, "Unable to load %s", pContainer);
+    sprintf(pTmpBuf, "Unable to load %s", pContainer);
     Abortf(pTmpBuf);
   }
   fread(&DstBuf, 1u, 0x30u, v4);
--- a/VideoPlayer.cpp	Sun Nov 04 03:58:34 2012 +0200
+++ b/VideoPlayer.cpp	Sun Nov 04 04:00:06 2012 +0200
@@ -492,7 +492,7 @@
 LABEL_3:
     v7 = "Can't open file - anims\\%s.smk";
 LABEL_4:
-    sprintfex(v3, v7, v8);
+    sprintf(v3, v7, v8);
     MessageBoxA(0, v3, "Video File Error", 0);
     return;
   }
@@ -1025,13 +1025,13 @@
     MessageBoxA(nullptr, v12, v15, 0);
       return;
     }
-    sprintfex(Str2, "%s.smk", pMovieName);
+    sprintf(Str2, "%s.smk", pMovieName);
     v5 = OpenSmack(Str2);
     v3->pSmackerMovie = v5;
     if ( !v5 )
     {
       v3->Unload();
-      sprintfex(pTmpBuf, "Can't load %s", &Str2);
+      sprintf(pTmpBuf, "Can't load %s", &Str2);
       v15 = "E:\\WORK\\MSDEV\\MM7\\MM7\\Code\\Video.cpp:937";
       v12 = pTmpBuf;
       goto LABEL_6;
@@ -1105,7 +1105,7 @@
       if ( !v6 )
       {
         Unload();
-        sprintfex(pVideoName, "Can't load file - anims\\%s.smk", pFilename);
+        sprintf(pVideoName, "Can't load file - anims\\%s.smk", pFilename);
 LABEL_17:
         MessageBoxA(0, pVideoName, "Smacker Error", 0);
         return;
@@ -1121,7 +1121,7 @@
         Unload();
         v12 = "Can't allocate memory for buffer";
 LABEL_16:
-        sprintfex(pVideoName, v12);
+        sprintf(pVideoName, v12);
         goto LABEL_17;
       }
       SmackToBuffer(v4->pSmackerMovie, 0, 0, v4->pSmackerMovie->Width, v4->pSmackerMovie->Height, v9, 0);
--- a/mm7_5.cpp	Sun Nov 04 03:58:34 2012 +0200
+++ b/mm7_5.cpp	Sun Nov 04 04:00:06 2012 +0200
@@ -2155,7 +2155,7 @@
           }
           else
           {
-            sprintfex(a1, "data\\lloyd%d%d.pcx", _506348_current_lloyd_playerid + 1, uMessageParam + 1);
+            sprintf(a1, "data\\lloyd%d%d.pcx", _506348_current_lloyd_playerid + 1, uMessageParam + 1);
             SaveScreenshot(a1);
             LoadThumbnailLloydTexture(uMessageParam, _506348_current_lloyd_playerid + 1);
             v212 = qword_506350 << 7;
@@ -2325,7 +2325,7 @@
           v157 = pGlobalTXT_LocalizationStrings[35];
           goto _sprintex_2args_draw_status_and_continue;
         case UIMSG_ShowFinalWindow:
-          sprintfex(
+          sprintf(
             pFinalMessage,
             "%s\n \n%s\n \n%s",
             pGlobalTXT_LocalizationStrings[151],// "Congratulations Adventurer."
@@ -2340,7 +2340,7 @@
           goto LABEL_524;
         case UIMSG_D5|0x8:
 LABEL_524:
-          sprintfex(pTmpBuf, "%s", pKeyActionMap->pPressedKeysBuffer);
+          sprintf(pTmpBuf, "%s", pKeyActionMap->pPressedKeysBuffer);
           memcpy(
             &v216,
             texture_frame_table_txt_parser((const char *)pKeyActionMap->pPressedKeysBuffer, &v218),
@@ -2380,7 +2380,7 @@
                 goto LABEL_90;
               }
             }
-            sprintfex(Str2, "No map found for %s", pMapStats->pInfos[v71].pName);
+            sprintf(Str2, "No map found for %s", pMapStats->pInfos[v71].pName);
             v73 = Str2;
           }
           else
@@ -2705,7 +2705,7 @@
             v178 = pSpellStats->pInfos[uMessageParam + 11 * v98 + 1].pName;
             v161 = pGlobalTXT_LocalizationStrings[486];
           }
-          sprintfex(pTmpBuf, v161, v178);
+          sprintf(pTmpBuf, v161, v178);
           sub_41C0B8_set_status_string(pTmpBuf);
           goto LABEL_91;
         case 0x58:
@@ -5159,7 +5159,7 @@
         v47 = pGlobalTXT_LocalizationStrings[189];// "%s shoots %s for %lu points"
       else
         v47 = pGlobalTXT_LocalizationStrings[164];// "%s hits %s for %lu damage"
-      sprintfex(pTmpBuf, v47, pPlayerName, pMonsterName, v50);
+      sprintf(pTmpBuf, v47, pPlayerName, pMonsterName, v50);
       ShowStatusBarString(pTmpBuf, 2u);
     }
     v41 = 0;
@@ -5208,7 +5208,7 @@
       v50 = (int)pMonster;
       pMonsterName = (char *)uDamageAmount;
       pPlayerName = pPlayer->pName;             // "%s inflicts %lu points killing %s"
-      sprintfex(pTmpBuf, pGlobalTXT_LocalizationStrings[175], pPlayer->pName, uDamageAmount, pMonster);
+      sprintf(pTmpBuf, pGlobalTXT_LocalizationStrings[175], pPlayer->pName, uDamageAmount, pMonster);
       ShowStatusBarString(pTmpBuf, 2u);
     }
   }
@@ -5231,7 +5231,7 @@
     {
       v50 = (int)pMonster;
       pMonsterName = pPlayer->pName;            // "%s stuns %s"
-      sprintfex(pTmpBuf, pGlobalTXT_LocalizationStrings[635], pPlayer->pName, pMonster);
+      sprintf(pTmpBuf, pGlobalTXT_LocalizationStrings[635], pPlayer->pName, pMonster);
       ShowStatusBarString(pTmpBuf, 2u);
     }
   }
@@ -5251,7 +5251,7 @@
         {
           v50 = (int)pMonster;
           pMonsterName = pPlayer->pName;        // "%s paralyzes %s"
-          sprintfex(pTmpBuf, pGlobalTXT_LocalizationStrings[636], pPlayer->pName, pMonster);
+          sprintf(pTmpBuf, pGlobalTXT_LocalizationStrings[636], pPlayer->pName, pMonster);
           ShowStatusBarString(pTmpBuf, 2u);
         }
       }
@@ -5573,7 +5573,7 @@
       v52 = v51;
       if ( (signed int)SkillToMastery(v51) >= 4 && rand() % 100 < (v52 & 0x3F) )
       {
-        sprintfex(pTmpBuf, pGlobalTXT_LocalizationStrings[637], v45 + 168);
+        sprintf(pTmpBuf, pGlobalTXT_LocalizationStrings[637], v45 + 168);
         ShowStatusBarString(pTmpBuf, 2u);
         ((Player *)v45)->PlaySound(6, 0);
         return;
@@ -6560,7 +6560,7 @@
               goto LABEL_88;
 LABEL_91:
             v6 = "item%3.3dv%da1";
-            return sprintfex(a1, v6, v7, v8);
+            return sprintf(a1, v6, v7, v8);
           }
           if ( a2 == 521 )
           {
@@ -6602,7 +6602,7 @@
         v7 = a2;
 LABEL_88:
         v6 = "item%3.3dv%d";
-        return sprintfex(a1, v6, v7, v8);
+        return sprintf(a1, v6, v7, v8);
       }
     }
     if ( a2 != 516 )
@@ -6629,7 +6629,7 @@
           v8 = a3;
           v7 = a2;
           v6 = "item%3.3dv%da2";
-          return sprintfex(a1, v6, v7, v8);
+          return sprintf(a1, v6, v7, v8);
         }
         v8 = a3;
         v7 = a2;
@@ -12090,7 +12090,7 @@
 //----- (0040DEC8) --------------------------------------------------------
 void __fastcall intToString(int val, char *pOut)
 {
-  sprintfex(pOut, "%d", val);
+  sprintf(pOut, "%d", val);
 }
 
 //----- (0040DEDB) --------------------------------------------------------
@@ -12533,7 +12533,7 @@
     v5 = v12;
   if ( v4 > v5 )
     v5 = v4;
-  sprintfex(
+  sprintf(
     pTmpBuf2,
     "%s\n\n%s\t%03d:\t%03d%s\t000\n%s\t%03d:\t%03d%s\t000\n%s\t%03d:\t%03d%s\t000\n%s\t%03d:\t%03d%s",
     v2->pDescription,
@@ -12570,7 +12570,7 @@
   a1.uFrameWidth = 108;
   a1.uFrameZ = a1.uFrameX + 107;
   a1.DrawText2(pFontComic, 0xCu, 0x4Bu, 0, pSkillNames[v1->pNumSpellBookPage + 12], 3u);
-  sprintfex(
+  sprintf(
     pTmpBuf,
     "%s\n%d",
     pGlobalTXT_LocalizationStrings[522],
@@ -12655,7 +12655,7 @@
   v22.uFrameW = 351;
   if ( !bRecallingBeacon )
     v1 = pGlobalTXT_LocalizationStrings[375];   // Set Beacon
-  sprintfex(pTmpBuf, "%s", v1);
+  sprintf(pTmpBuf, "%s", v1);
   v22.DrawText2(pBook2Font, 0, 22u, 0, pTmpBuf, 3u);
   if ( bRecallingBeacon )
   {
@@ -12744,7 +12744,7 @@
         v20 = v13;
         v17 = v11 + 1;
 LABEL_25:
-        sprintfex(pTmpBuf, "%lu %s", v17, v20);
+        sprintf(pTmpBuf, "%lu %s", v17, v20);
         v21 = 3;
         v18 = pTmpBuf;
         v16 = 1;
@@ -12934,10 +12934,10 @@
     if ( v11->pName[v4] )
     {
       v6 = &byte_4E2430[12 * v1] + v4;
-      sprintfex(pContainer, "SB%sS%02d", spellbook_texture_filename_suffices[v1], (unsigned __int8)*v6);
+      sprintf(pContainer, "SB%sS%02d", spellbook_texture_filename_suffices[v1], (unsigned __int8)*v6);
       v7 = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
       dword_506408[v12] = 72 * v7 + 7145548;
-      sprintfex(pContainer, "SB%sC%02d", spellbook_texture_filename_suffices[v1], (unsigned __int8)*v6);
+      sprintf(pContainer, "SB%sC%02d", spellbook_texture_filename_suffices[v1], (unsigned __int8)*v6);
       result = &pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE)];
       dword_5063D8[v12] = result;
     }
@@ -13903,7 +13903,7 @@
   if ( v7 )
     v22.DrawText2(pBook2Font, 0xFFFFFFF2u, 0xCu, 0, pMapStats->pInfos[v7].pName, 3u);
   v22.uFrameX = 0;
-  sprintfex(Str, pGlobalTXT_LocalizationStrings[659], pParty->vPosition.x, pParty->vPosition.y);
+  sprintf(Str, pGlobalTXT_LocalizationStrings[659], pParty->vPosition.x, pParty->vPosition.y);
   return v22.DrawText2(pFontComic, 0, 0x140u, 0, Str, 0);
 }
 
@@ -13993,7 +13993,7 @@
   a1.uFrameW = 467;
   a1.DrawText2(pBook2Font, 0, 0x16u, 0, pGlobalTXT_LocalizationStrings[186], 3u);
   v1 = GetDayPart();
-  sprintfex(
+  sprintf(
     pTmpBuf,
     "%s\t100:\t110%d:%02d %s - %s",
     pGlobalTXT_LocalizationStrings[526],
@@ -14002,29 +14002,29 @@
     aAMPMNames[v2],
     v1);
   a1.DrawText(pBookFont, 70, 55, a5, pTmpBuf, 0, 0, 0);
-  sprintfex(
+  sprintf(
     pTmpBuf,
     "%s\t100:\t110%d - %s",
     pGlobalTXT_LocalizationStrings[56],
     pParty->uDaysPlayed + 1,
     aDayNames[pParty->uDaysPlayed % 7]);
   a1.DrawText(pBookFont, 70, 2 * LOBYTE(pBookFont->uFontHeight) + 49, a5, pTmpBuf, 0, 0, 0);
-  sprintfex(
+  sprintf(
     pTmpBuf,
     "%s\t100:\t110%d - %s",
     pGlobalTXT_LocalizationStrings[146],
     pParty->uCurrentMonth + 1,
     aMonthNames[pParty->uCurrentMonth]);
   a1.DrawText(pBookFont, 70, 4 * LOBYTE(pBookFont->uFontHeight) + 43, a5, pTmpBuf, 0, 0, 0);
-  sprintfex(pTmpBuf, "%s\t100:\t110%d", pGlobalTXT_LocalizationStrings[245], pParty->uCurrentYear);
+  sprintf(pTmpBuf, "%s\t100:\t110%d", pGlobalTXT_LocalizationStrings[245], pParty->uCurrentYear);
   a1.DrawText(pBookFont, 70, 6 * LOBYTE(pBookFont->uFontHeight) + 37, a5, pTmpBuf, 0, 0, 0);
-  sprintfex(pTmpBuf, "%s\t100:\t110%s", pGlobalTXT_LocalizationStrings[530], aMoonPhaseNames[v7]);
+  sprintf(pTmpBuf, "%s\t100:\t110%s", pGlobalTXT_LocalizationStrings[530], aMoonPhaseNames[v7]);
   a1.DrawText(pBookFont, 70, 8 * LOBYTE(pBookFont->uFontHeight) + 31, a5, pTmpBuf, 0, 0, 0);
   if ( v6 )
     v3 = pMapStats->pInfos[v6].pName;
   else
     v3 = "Unknown";
-  sprintfex(pTmpBuf, "%s\t100:\t110%s", pGlobalTXT_LocalizationStrings[531], v3);
+  sprintf(pTmpBuf, "%s\t100:\t110%s", pGlobalTXT_LocalizationStrings[531], v3);
   return a1.DrawText(pBookFont, 70, 10 * LOBYTE(pBookFont->uFontHeight) + 25, a5, pTmpBuf, 0, 0, 0);
 }
 
@@ -14122,7 +14122,7 @@
 {
   GUIWindow v0; // [sp+4h] [bp-54h]@1
 
-  sprintfex(pTmpBuf2, "%s\n \n%s", ptr_507BDC->Hint, pGlobalTXT_LocalizationStrings[61]);// Press Escape
+  sprintf(pTmpBuf2, "%s\n \n%s", ptr_507BDC->Hint, pGlobalTXT_LocalizationStrings[61]);// Press Escape
   v0.Hint = pTmpBuf2;
   v0.uFrameWidth = 400;
   v0.uFrameHeight = 100;
@@ -15345,7 +15345,7 @@
   }
   if ( !v0->CanAct() )
   {
-    sprintfex(pTmpBuf, pGlobalTXT_LocalizationStrings[427], v0->pName, pGlobalTXT_LocalizationStrings[541]);
+    sprintf(pTmpBuf, pGlobalTXT_LocalizationStrings[427], v0->pName, pGlobalTXT_LocalizationStrings[541]);
     v43.Hint = pTmpBuf;
     v43.uFrameWidth = 384;
     v43.uFrameHeight = 180;
@@ -15777,7 +15777,7 @@
         a1.uFrameWidth = 400;
         a1.uFrameZ = a1.uFrameX + 399;
         a1.DrawMessageBox(0);
-        sprintfex(pTmpBuf2, "NPC%03d", v6->uPortraitID);
+        sprintf(pTmpBuf2, "NPC%03d", v6->uPortraitID);
         v8 = pIcons_LOD->LoadTexture(pTmpBuf2, TEXTURE_16BIT_PALETTE);
         pRenderer->DrawTextureIndexed(
           a1.uFrameX + 22,
@@ -15788,7 +15788,7 @@
         {
           v10 = v6->pName;
           v11 = pTmpBuf;
-          sprintfex(pTmpBuf, pGlobalTXT_LocalizationStrings[429], v10, aNPCProfessionNames[v9]);
+          sprintf(pTmpBuf, pGlobalTXT_LocalizationStrings[429], v10, aNPCProfessionNames[v9]);
         }
         else
         {
@@ -15890,7 +15890,7 @@
       __debugbreak();
       if ( !pPlayers[uActiveCharacter]->CanAct() )
       {
-        sprintfex(
+        sprintf(
           pTmpBuf,
           pGlobalTXT_LocalizationStrings[427],
           pPlayers[uActiveCharacter]->pName,
@@ -16208,7 +16208,7 @@
     a1.uFrameZ = a1.uFrameX + a1.uFrameWidth - 1;
     a1.uFrameW = a1.uFrameY + a1.uFrameHeight - 1;
     v25 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0xFFu, 0xFFu, 0x9Bu);
-    sprintfex(pTmpBuf, format_4E2D80, v25, v14);
+    sprintf(pTmpBuf, format_4E2D80, v25, v14);
     a1.DrawText2(pFontCreate, 0, 0, 0, pTmpBuf, 3u);
     a1.DrawText(pFontSmallnum, 1, LOBYTE(pFontLucida->uFontHeight), 0, v23, 0, 0, 0);
   }
@@ -16499,7 +16499,7 @@
   Dst.uFrameZ = Dst.uFrameX + Dst.uFrameWidth - 1;
   Dst.uFrameW = Dst.uFrameY + Dst.uFrameHeight - 1;
   v4 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0xFFu, 0xFFu, 0x9Bu);
-  sprintfex(pTmpBuf, format_4E2D80, v4, v3);
+  sprintf(pTmpBuf, format_4E2D80, v4, v3);
   Dst.DrawText2(pFontCreate, 0, 0, 0, pTmpBuf, 3u);
   return Dst.DrawText(pFontSmallnum, 1, LOBYTE(pFontLucida->uFontHeight), 0, v2, 0, 0, 0);
 }
@@ -16632,26 +16632,26 @@
   {
     strcpy(a2, "%s\n\n");
     v24 = sub_417AD4(pPlayer->uClass, v2, 1);
-    sprintfex(Source, format_4E2DC8, v24);
+    sprintf(Source, format_4E2DC8, v24);
     strcat(a2, Source);
     strcat(a2, "%s\t%03d:\t%03d%s\t000\n");
     v25 = sub_417AD4(pPlayer->uClass, v36, 2);
-    sprintfex(Source, format_4E2DC8, v25);
+    sprintf(Source, format_4E2DC8, v25);
     strcat(a2, Source);
     strcat(a2, "%s\t%03d:\t%03d%s\t000\n");
     v26 = sub_417AD4(pPlayer->uClass, v36, 3);
-    sprintfex(Source, format_4E2DC8, v26);
+    sprintf(Source, format_4E2DC8, v26);
     strcat(a2, Source);
     strcat(a2, "%s\t%03d:\t%03d%s\t000\n");
     v27 = pPlayer->uClass;
     v28 = v36;
     v29 = sub_417AD4(v27, v36, 4);
-    sprintfex(Source, format_4E2DC8, v29);
+    sprintf(Source, format_4E2DC8, v29);
     strcat(a2, Source);
     strcat(a2, "%s\t%03d:\t%03d%s\t000\n");
 
     v23 = static_sub_417BB5_out_string;
-    sprintfex(
+    sprintf(
       static_sub_417BB5_out_string,
       a2,
       pSkillDesc[v28],
@@ -16676,24 +16676,24 @@
   {
     strcpy(a2, "%s\n\n");
     v9 = sub_417AD4(pPlayer->uClass, v2, 1);
-    sprintfex(Source, format_4E2DC8, v9);
+    sprintf(Source, format_4E2DC8, v9);
     strcat(a2, Source);
     strcat(a2, "%s\t%03d:\t%03d%s\t000\n");
     v10 = sub_417AD4(pPlayer->uClass, v36, 2);
-    sprintfex(Source, format_4E2DC8, v10);
+    sprintf(Source, format_4E2DC8, v10);
     strcat(a2, Source);
     strcat(a2, "%s\t%03d:\t%03d%s\t000\n");
     v11 = sub_417AD4(pPlayer->uClass, v36, 3);
-    sprintfex(Source, format_4E2DC8, v11);
+    sprintf(Source, format_4E2DC8, v11);
     strcat(a2, Source);
     strcat(a2, "%s\t%03d:\t%03d%s\t000\n");
     v12 = v36;
     v13 = sub_417AD4(pPlayer->uClass, v36, 4);
-    sprintfex(Source, format_4E2DC8, v13);
+    sprintf(Source, format_4E2DC8, v13);
     strcat(a2, Source);
     strcat(a2, "%s\t%03d:\t%03d%s\t000\n\n");
     v14 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0xFFu, 0xFFu, 0xFFu);
-    sprintfex(Source, format_4E2DC8, v14);
+    sprintf(Source, format_4E2DC8, v14);
     strcat(a2, Source);
     strcat(a2, "%s: +%d");
     v15 = v12;
@@ -16707,7 +16707,7 @@
     v21 = *(int *)((char *)pNormalSkillDesc + v15);
     v22 = *(int *)((char *)pSkillDesc + v15);
     v23 = static_sub_417BB5_out_string;
-    sprintfex(
+    sprintf(
       static_sub_417BB5_out_string,
       a2,
       v22,
@@ -16875,7 +16875,7 @@
           v10 = aCharacterConditionNames[v8];
           v19 %= 24i64;
           v11 = GetConditionDrawColor(v8);
-          sprintfex(pTmpBuf, &byte_4E2DE8, v11, v10);
+          sprintf(pTmpBuf, &byte_4E2DE8, v11, v10);
           strcat(pTmpBuf2, pTmpBuf);
           if ( v19 && v19 <= 1 )
             v12 = pGlobalTXT_LocalizationStrings[109];
@@ -16883,7 +16883,7 @@
             v12 = pGlobalTXT_LocalizationStrings[110];
           if ( !v22 || (v13 = pGlobalTXT_LocalizationStrings[56], v22 > 1) )
             v13 = pGlobalTXT_LocalizationStrings[57];
-          sprintfex(pTmpBuf, "%lu %s, %lu %s", v22, v13, v19, v12);
+          sprintf(pTmpBuf, "%lu %s, %lu %s", v22, v13, v19, v12);
           strcat(pTmpBuf2, pTmpBuf);
           v7 = v20;
           _y = v21;
@@ -16921,12 +16921,12 @@
       pTmpBuf[0] = 0;
       pTmpBuf2[0] = 0;
       if ( v15 > v14->uLevel )
-        sprintfex(pTmpBuf, pGlobalTXT_LocalizationStrings[147], v15);
+        sprintf(pTmpBuf, pGlobalTXT_LocalizationStrings[147], v15);
       v16 = sub_4B46F8(v15) - LODWORD(v14->uExperience);
-      sprintfex(pTmpBuf2, pGlobalTXT_LocalizationStrings[538], v16, v15 + 1);
+      sprintf(pTmpBuf2, pGlobalTXT_LocalizationStrings[538], v16, v15 + 1);
       strcat(pTmpBuf, "\n");
       strcat(pTmpBuf, pTmpBuf2);
-      LOBYTE(_y) = sprintfex(pTmpBuf2, "%s\n \n%s", pPlayerExperienceAttributeDescription, pTmpBuf);
+      LOBYTE(_y) = sprintf(pTmpBuf2, "%s\n \n%s", pPlayerExperienceAttributeDescription, pTmpBuf);
       v7 = pTmpBuf2;
       goto LABEL_47;
     case 15:
@@ -17145,14 +17145,14 @@
   v2 = pIcons_LOD->LoadTexture("fr_stats", TEXTURE_16BIT_PALETTE);
   pRenderer->DrawTextureIndexed(8u, 8u, (Texture *)(v2 != -1 ? (int)&pIcons_LOD->pTextures[v2] : 0));
   v3 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0xFFu, 0xFFu, 0x9Bu);
-  sprintfex(pTmpBuf, format_4E2DC8, v3);
-  sprintfex(pTmpBuf2, pGlobalTXT_LocalizationStrings[429], pPlayer->pName, pClassNames[pPlayer->uClass]);
+  sprintf(pTmpBuf, format_4E2DC8, v3);
+  sprintf(pTmpBuf2, pGlobalTXT_LocalizationStrings[429], pPlayer->pName, pClassNames[pPlayer->uClass]);
   strcat(pTmpBuf, pTmpBuf2);
   if ( pPlayer->uSkillPoints )
     v4 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0, 0xFFu, 0);
   else
     v4 = 0xFFFFu;
-  sprintfex(pTmpBuf2, "\xC" "00000\xD" "180%s: \xC%05d%d\xC" "00000\n\n\n", pGlobalTXT_LocalizationStrings[207], v4, pPlayer->uSkillPoints);
+  sprintf(pTmpBuf2, "\xC" "00000\xD" "180%s: \xC%05d%d\xC" "00000\n\n\n", pGlobalTXT_LocalizationStrings[207], v4, pPlayer->uSkillPoints);
   strcat(pTmpBuf, pTmpBuf2);
   pGUIWindow_CurrentMenu->DrawText(pFontArrus, 26, 18, 0, pTmpBuf, 0, 0, 0);
   v5 = pPlayer->GetBaseStrength();
@@ -17160,7 +17160,7 @@
   v7 = pPlayer->GetBaseStrength();
   v8 = pPlayer->GetActualMight();
   v9 = UI_GetHealthManaStringColor(v8, v7);
-  sprintfex(pTmpBuf, "%s", pGlobalTXT_LocalizationStrings[144], v9, v6, v5);
+  sprintf(pTmpBuf, "%s", pGlobalTXT_LocalizationStrings[144], v9, v6, v5);
   pGUIWindow_CurrentMenu->DrawText(pFontArrus, 26, 53, 0, pTmpBuf, 0, 0, 0);
   v10 = LOBYTE(pFontArrus->uFontHeight) + 51;
   v11 = pPlayer->GetBaseIntelligence();
@@ -17168,7 +17168,7 @@
   v13 = pPlayer->GetBaseIntelligence();
   v14 = pPlayer->GetActualIntelligence();
   v15 = UI_GetHealthManaStringColor(v14, v13);
-  sprintfex(pTmpBuf, "%s", pGlobalTXT_LocalizationStrings[116], v15, v12, v11);
+  sprintf(pTmpBuf, "%s", pGlobalTXT_LocalizationStrings[116], v15, v12, v11);
   pGUIWindow_CurrentMenu->DrawText(pFontArrus, 26, v10, 0, pTmpBuf, 0, 0, 0);
   v16 = LOBYTE(pFontArrus->uFontHeight) + v10 - 2;
   v17 = pPlayer->GetBaseWillpower();
@@ -17176,7 +17176,7 @@
   v19 = pPlayer->GetBaseWillpower();
   v20 = pPlayer->GetActualWillpower();
   v21 = UI_GetHealthManaStringColor(v20, v19);
-  sprintfex(pTmpBuf, "%s", pGlobalTXT_LocalizationStrings[163], v21, v18, v17);
+  sprintf(pTmpBuf, "%s", pGlobalTXT_LocalizationStrings[163], v21, v18, v17);
   pGUIWindow_CurrentMenu->DrawText(pFontArrus, 26, v16, 0, pTmpBuf, 0, 0, 0);
   v22 = LOBYTE(pFontArrus->uFontHeight) + v16 - 2;
   v23 = pPlayer->GetBaseEndurance();
@@ -17184,7 +17184,7 @@
   v25 = pPlayer->GetBaseEndurance();
   v26 = pPlayer->GetActualEndurance();
   v27 = UI_GetHealthManaStringColor(v26, v25);
-  sprintfex(pTmpBuf, "%s", pGlobalTXT_LocalizationStrings[75], v27, v24, v23);
+  sprintf(pTmpBuf, "%s", pGlobalTXT_LocalizationStrings[75], v27, v24, v23);
   pGUIWindow_CurrentMenu->DrawText(pFontArrus, 26, v22, 0, pTmpBuf, 0, 0, 0);
   v28 = LOBYTE(pFontArrus->uFontHeight) + v22 - 2;
   v29 = pPlayer->GetBaseAccuracy();
@@ -17192,7 +17192,7 @@
   v31 = pPlayer->GetBaseAccuracy();
   v32 = pPlayer->GetActualAccuracy();
   v33 = UI_GetHealthManaStringColor(v32, v31);
-  sprintfex(pTmpBuf, "%s", pGlobalTXT_LocalizationStrings[1], v33, v30, v29);
+  sprintf(pTmpBuf, "%s", pGlobalTXT_LocalizationStrings[1], v33, v30, v29);
   pGUIWindow_CurrentMenu->DrawText(pFontArrus, 26, v28, 0, pTmpBuf, 0, 0, 0);
   v34 = LOBYTE(pFontArrus->uFontHeight) + v28 - 2;
   v35 = pPlayer->GetBaseSpeed();
@@ -17200,7 +17200,7 @@
   v37 = pPlayer->GetBaseSpeed();
   v38 = pPlayer->GetActualSpeed();
   v39 = UI_GetHealthManaStringColor(v38, v37);
-  sprintfex(pTmpBuf, "%s", pGlobalTXT_LocalizationStrings[211], v39, v36, v35);
+  sprintf(pTmpBuf, "%s", pGlobalTXT_LocalizationStrings[211], v39, v36, v35);
   pGUIWindow_CurrentMenu->DrawText(pFontArrus, 26, v34, 0, pTmpBuf, 0, 0, 0);
   v40 = LOBYTE(pFontArrus->uFontHeight) + v34 - 2;
   v41 = pPlayer->GetBaseLuck();
@@ -17208,7 +17208,7 @@
   v43 = pPlayer->GetBaseLuck();
   v44 = pPlayer->GetActualLuck();
   v45 = UI_GetHealthManaStringColor(v44, v43);
-  sprintfex(pTmpBuf, "%s", pGlobalTXT_LocalizationStrings[136], v45, v42, v41);
+  sprintf(pTmpBuf, "%s", pGlobalTXT_LocalizationStrings[136], v45, v42, v41);
   pGUIWindow_CurrentMenu->DrawText(pFontArrus, 26, v40, 0, pTmpBuf, 0, 0, 0);
   a2 = "%s";
   v46 = v40 + 2 * LOBYTE(pFontArrus->uFontHeight) + 5;
@@ -17218,7 +17218,7 @@
   v48 = pPlayer->sHealth;
   v49 = pPlayer->GetMaxHealth();
   v50 = UI_GetHealthManaStringColor(pPlayer->sHealth, v49);
-  sprintfex(pTmpBuf, a2, pGlobalTXT_LocalizationStrings[108], v50, v48, v47);
+  sprintf(pTmpBuf, a2, pGlobalTXT_LocalizationStrings[108], v50, v48, v47);
   pGUIWindow_CurrentMenu->DrawText(pFontArrus, 26, v46, 0, pTmpBuf, 0, 0, 0);
   a2a = "%s";
   uY = LOBYTE(pFontArrus->uFontHeight) + v46 - 2;
@@ -17228,7 +17228,7 @@
   v52 = pPlayer->sMana;
   v53 = pPlayer->GetMaxMana();
   v54 = UI_GetHealthManaStringColor(pPlayer->sMana, v53);
-  sprintfex(pTmpBuf, a2a, pGlobalTXT_LocalizationStrings[212], v54, v52, v51);
+  sprintf(pTmpBuf, a2a, pGlobalTXT_LocalizationStrings[212], v54, v52, v51);
   pGUIWindow_CurrentMenu->DrawText(pFontArrus, 26, uY, 0, pTmpBuf, 0, 0, 0);
   v55 = LOBYTE(pFontArrus->uFontHeight) + uY - 2;
   v56 = pPlayer->GetBaseAC();
@@ -17236,13 +17236,13 @@
   v58 = pPlayer->GetBaseAC();
   v59 = pPlayer->GetActualAC();
   v60 = UI_GetHealthManaStringColor(v59, v58);
-  sprintfex(pTmpBuf, "%s", pGlobalTXT_LocalizationStrings[12], v60, v57, v56);
+  sprintf(pTmpBuf, "%s", pGlobalTXT_LocalizationStrings[12], v60, v57, v56);
   pGUIWindow_CurrentMenu->DrawText(pFontArrus, 26, v55, 0, pTmpBuf, 0, 0, 0);
   v61 = v55 + 2 * LOBYTE(pFontArrus->uFontHeight) - 2;
   v62 = pPlayer->GetMajorConditionIdx();
   v63 = aCharacterConditionNames[v62];
   v64 = GetConditionDrawColor(v62);
-  sprintfex(pTmpBuf, "%s: ", pGlobalTXT_LocalizationStrings[47], v64, v63);
+  sprintf(pTmpBuf, "%s: ", pGlobalTXT_LocalizationStrings[47], v64, v63);
   pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, 0x1Au, v61, 0, pTmpBuf, 226, 0);
   v65 = LOBYTE(pFontArrus->uFontHeight) + v61 - 1;
   v66 = pPlayer->uQuickSpell;
@@ -17250,14 +17250,14 @@
     v67 = pSpellStats->pInfos[v66].pShortName;
   else
     v67 = pGlobalTXT_LocalizationStrings[153];
-  sprintfex(pTmpBuf, "%s: %s", pGlobalTXT_LocalizationStrings[172], v67);
+  sprintf(pTmpBuf, "%s: %s", pGlobalTXT_LocalizationStrings[172], v67);
   pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, 0x1Au, v65, 0, pTmpBuf, 226, 0);
   v68 = pPlayer->GetBaseAge();
   v69 = pPlayer->GetActualAge();
   v70 = pPlayer->GetBaseAge();
   v71 = pPlayer->GetActualAge();
   v72 = UI_GetHealthManaStringColor(v71, v70);
-  sprintfex(pTmpBuf, "%s", pGlobalTXT_LocalizationStrings[5], v72, v69, v68);
+  sprintf(pTmpBuf, "%s", pGlobalTXT_LocalizationStrings[5], v72, v69, v68);
   pGUIWindow_CurrentMenu->DrawText(pFontArrus, 266, 50, 0, pTmpBuf, 0, 0, 0);
   a2b = "%s";
   uYa = LOBYTE(pFontArrus->uFontHeight) + 48;
@@ -17268,7 +17268,7 @@
   v75 = pPlayer->GetBaseLevel();
   v76 = pPlayer->GetActualLevel();
   v77 = UI_GetHealthManaStringColor(v76, v75);
-  sprintfex(pTmpBuf, a2b, pGlobalTXT_LocalizationStrings[131], v77, v74, v73);
+  sprintf(pTmpBuf, a2b, pGlobalTXT_LocalizationStrings[131], v77, v74, v73);
   pGUIWindow_CurrentMenu->DrawText(pFontArrus, 266, uYa, 0, pTmpBuf, 0, 0, 0);
   uYb = uYa + LOBYTE(pFontArrus->uFontHeight) - 2;
   if ( (signed __int64)pPlayer->uExperience <= 9999999 )
@@ -17278,23 +17278,23 @@
   v79 = LODWORD(pPlayer->uExperience);
   v80 = v78;
   v81 = pPlayer->GetExperienceDisplayColor();
-  sprintfex(pTmpBuf, "%s\r180", v80, v81, v79);
+  sprintf(pTmpBuf, "%s\r180", v80, v81, v79);
   pGUIWindow_CurrentMenu->DrawText(pFontArrus, 266, uYb, 0, pTmpBuf, 0, 0, 0);
   v82 = uYb + 2 * LOBYTE(pFontArrus->uFontHeight);
   v83 = pPlayer->GetActualAttack(0);
-  sprintfex(pTmpBuf, "%s\t100%+d\n", pGlobalTXT_LocalizationStrings[18], v83);
+  sprintf(pTmpBuf, "%s\t100%+d\n", pGlobalTXT_LocalizationStrings[18], v83);
   pGUIWindow_CurrentMenu->DrawText(pFontArrus, 266, v82, 0, pTmpBuf, 0, 0, 0);
   v84 = v82 + LOBYTE(pFontArrus->uFontHeight) - 2;
   v85 = pPlayer->GetMeleeDamageString();
-  sprintfex(pTmpBuf, "%s\t100 %s\n", pGlobalTXT_LocalizationStrings[53], v85);
+  sprintf(pTmpBuf, "%s\t100 %s\n", pGlobalTXT_LocalizationStrings[53], v85);
   pGUIWindow_CurrentMenu->DrawText(pFontArrus, 266, v84, 0, pTmpBuf, 0, 0, 0);
   v86 = v84 + LOBYTE(pFontArrus->uFontHeight) - 2;
   v87 = pPlayer->GetRangedAttack();
-  sprintfex(pTmpBuf, "%s\t100%+d\n", pGlobalTXT_LocalizationStrings[203], v87);
+  sprintf(pTmpBuf, "%s\t100%+d\n", pGlobalTXT_LocalizationStrings[203], v87);
   pGUIWindow_CurrentMenu->DrawText(pFontArrus, 266, v86, 0, pTmpBuf, 0, 0, 0);
   v88 = v86 + LOBYTE(pFontArrus->uFontHeight) - 2;
   v89 = pPlayer->GetRangedDamageString();
-  sprintfex(pTmpBuf, "%s\t100 %s\n\n", pGlobalTXT_LocalizationStrings[53], v89);
+  sprintf(pTmpBuf, "%s\t100 %s\n\n", pGlobalTXT_LocalizationStrings[53], v89);
   pGUIWindow_CurrentMenu->DrawText(pFontArrus, 266, v88, 0, pTmpBuf, 0, 0, 0);
   a2c = format_4E2E10;
   uYc = v88 + 2 * LOBYTE(pFontArrus->uFontHeight) - 4;
@@ -17304,7 +17304,7 @@
     a2c = format_4E2E68;
   v91 = v90;
   v92 = UI_GetHealthManaStringColor(v131, v90);
-  sprintfex(pTmpBuf, a2c, pGlobalTXT_LocalizationStrings[87], v92, v131, v91);
+  sprintf(pTmpBuf, a2c, pGlobalTXT_LocalizationStrings[87], v92, v131, v91);
   pGUIWindow_CurrentMenu->DrawText(pFontArrus, 266, uYc, 0, pTmpBuf, 0, 0, 0);
   a2d = format_4E2E10;
   uYd = uYc + LOBYTE(pFontArrus->uFontHeight) - 2;
@@ -17314,7 +17314,7 @@
     a2d = format_4E2E68;
   v94 = v93;
   v95 = UI_GetHealthManaStringColor(v132, v93);
-  sprintfex(pTmpBuf, a2d, pGlobalTXT_LocalizationStrings[6], v95, v132, v94);
+  sprintf(pTmpBuf, a2d, pGlobalTXT_LocalizationStrings[6], v95, v132, v94);
   pGUIWindow_CurrentMenu->DrawText(pFontArrus, 266, uYd, 0, pTmpBuf, 0, 0, 0);
   a2e = format_4E2E10;
   uYe = uYd + LOBYTE(pFontArrus->uFontHeight) - 2;
@@ -17324,7 +17324,7 @@
     a2e = format_4E2E68;
   v97 = v96;
   v98 = UI_GetHealthManaStringColor(v133, v96);
-  sprintfex(pTmpBuf, a2e, pGlobalTXT_LocalizationStrings[240], v98, v133, v97);
+  sprintf(pTmpBuf, a2e, pGlobalTXT_LocalizationStrings[240], v98, v133, v97);
   pGUIWindow_CurrentMenu->DrawText(pFontArrus, 266, uYe, 0, pTmpBuf, 0, 0, 0);
   a2f = format_4E2E10;
   uYf = uYe + LOBYTE(pFontArrus->uFontHeight) - 2;
@@ -17334,7 +17334,7 @@
     a2f = format_4E2E68;
   v100 = v99;
   v101 = UI_GetHealthManaStringColor(v134, v99);
-  sprintfex(pTmpBuf, a2f, pGlobalTXT_LocalizationStrings[70], v101, v134, v100);
+  sprintf(pTmpBuf, a2f, pGlobalTXT_LocalizationStrings[70], v101, v134, v100);
   pGUIWindow_CurrentMenu->DrawText(pFontArrus, 266, uYf, 0, pTmpBuf, 0, 0, 0);
   a2g = format_4E2E10;
   uYg = uYf + LOBYTE(pFontArrus->uFontHeight) - 2;
@@ -17345,12 +17345,12 @@
     a2g = format_4E2E68;
   v103 = v102;
   v104 = UI_GetHealthManaStringColor(v135, v102);
-  sprintfex(pTmpBuf, a2g, pGlobalTXT_LocalizationStrings[142], v104, v135, v103);
+  sprintf(pTmpBuf, a2g, pGlobalTXT_LocalizationStrings[142], v104, v135, v103);
   if ( pPlayer->uClass == 35 && v137 == 200 )
   {
     v105 = pGlobalTXT_LocalizationStrings[625];
     v106 = UI_GetHealthManaStringColor(v135, 200);
-    sprintfex(pTmpBuf, format_4E2E00, pGlobalTXT_LocalizationStrings[142], v106, v105);
+    sprintf(pTmpBuf, format_4E2E00, pGlobalTXT_LocalizationStrings[142], v106, v105);
   }
   pGUIWindow_CurrentMenu->DrawText(pFontArrus, 266, uYg, 0, pTmpBuf, 0, 0, 0);
   a2h = format_4E2E10;
@@ -17362,12 +17362,12 @@
     a2h = format_4E2E68;
   v108 = v107;
   v109 = UI_GetHealthManaStringColor(v136, v107);
-  sprintfex(pTmpBuf, a2h, pGlobalTXT_LocalizationStrings[29], v109, v136, v108);
+  sprintf(pTmpBuf, a2h, pGlobalTXT_LocalizationStrings[29], v109, v136, v108);
   if ( pPlayer->uClass == 35 && v138 == 200 )
   {
     v110 = pGlobalTXT_LocalizationStrings[625];
     v111 = UI_GetHealthManaStringColor(v136, 200);
-    sprintfex(pTmpBuf, format_4E2E00, pGlobalTXT_LocalizationStrings[29], v111, v110);
+    sprintf(pTmpBuf, format_4E2E00, pGlobalTXT_LocalizationStrings[29], v111, v110);
   }
   return pGUIWindow_CurrentMenu->DrawText(pFontArrus, 266, uYh, 0, pTmpBuf, 0, 0, 0);
 }
--- a/mm7_6.cpp	Sun Nov 04 03:58:34 2012 +0200
+++ b/mm7_6.cpp	Sun Nov 04 04:00:06 2012 +0200
@@ -1405,9 +1405,9 @@
     Dst.uItemID = pActor->uCarriedItemID;
     v9 = pItemsTable->pItems[Dst.uItemID].pUnidentifiedName;
     if ( v14 )
-      sprintfex(pTmpBuf2, pGlobalTXT_LocalizationStrings[490], v14, v9);
+      sprintf(pTmpBuf2, pGlobalTXT_LocalizationStrings[490], v14, v9);
     else
-      sprintfex(pTmpBuf2, pGlobalTXT_LocalizationStrings[471], v9);
+      sprintf(pTmpBuf2, pGlobalTXT_LocalizationStrings[471], v9);
     ShowStatusBarString(pTmpBuf2, 2u);
     v4 = Dst.uItemID;
     v5 = Dst.uItemID;
@@ -1455,9 +1455,9 @@
       pActor->array_000234[3].Reset();
       v11 = pItemsTable->pItems[Dst.uItemID].pUnidentifiedName;
       if ( v14 )
-        sprintfex(pTmpBuf2, pGlobalTXT_LocalizationStrings[490], v14, v11);
+        sprintf(pTmpBuf2, pGlobalTXT_LocalizationStrings[490], v14, v11);
       else
-        sprintfex(pTmpBuf2, pGlobalTXT_LocalizationStrings[471], v11);
+        sprintf(pTmpBuf2, pGlobalTXT_LocalizationStrings[471], v11);
       ShowStatusBarString(pTmpBuf2, 2u);
       if ( !pParty->AddItem(&Dst) )
         pParty->SetHoldingItem(&Dst);
@@ -1474,9 +1474,9 @@
   pItemsTable->GenerateItem(v7, pActor->pMonsterInfo.uTreasureType, &Dst);
   v10 = pItemsTable->pItems[Dst.uItemID].pUnidentifiedName;
   if ( v14 )
-    sprintfex(pTmpBuf2, pGlobalTXT_LocalizationStrings[490], v14, v10);
+    sprintf(pTmpBuf2, pGlobalTXT_LocalizationStrings[490], v14, v10);
   else
-    sprintfex(pTmpBuf2, pGlobalTXT_LocalizationStrings[471], v10);
+    sprintf(pTmpBuf2, pGlobalTXT_LocalizationStrings[471], v10);
   ShowStatusBarString(pTmpBuf2, 2u);
   v8 = pParty;
   if ( !pParty->AddItem(&Dst) )
@@ -6236,7 +6236,7 @@
           if ( v683.uItemID != v1 )
           {
             v422 = v683.GetDisplayName();
-            sprintfex(pTmpBuf2, "(%s), and %d gold", v422, v675);
+            sprintf(pTmpBuf2, "(%s), and %d gold", v422, v675);
             goto LABEL_807;
           }
           v664 = "%d gold";
@@ -6247,7 +6247,7 @@
           v675 = v683.GetDisplayName();
           v664 = "(%s)";
 LABEL_803:
-          sprintfex(pTmpBuf2, v664, v675);
+          sprintf(pTmpBuf2, v664, v675);
           goto LABEL_807;
         }
         strcpy(pTmpBuf2, "nothing");
@@ -6458,7 +6458,7 @@
           }
           else
           {
-            sprintfex(pTmpBuf2, pGlobalTXT_LocalizationStrings[471], pItemsTable->pItems[v450].pUnidentifiedName);
+            sprintf(pTmpBuf2, pGlobalTXT_LocalizationStrings[471], pItemsTable->pItems[v450].pUnidentifiedName);
             ShowStatusBarString(pTmpBuf2, 2u);
             if ( !pParty->AddItem(&pLayingItems[v445].stru_24) )
               pParty->SetHoldingItem(&pLayingItems[v445].stru_24);