mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
Altered the pName field from Pockets.xml to a CHAR16 value so it will support multilingual code.
Updated the Pockets.xml reader function so that we can include a german.pockets.xml and russian.pockets.xml (and any other language we eventually choose to support) just like we have with Items.xml. I moved the "Sold Item" and "Delete Item" phrases to the language specific cpp files. I updated the SHIFT+N hotkey so that it will now work from the strategic screen. On tactical it handles the entire team. On strategic, it handles only the one merc who is currently active. I fixed a problem with the ALT+W cheat key so that it cycles properly. I fixed a problem with the backpack buttons where the button key wasn't being properly deleted. This could sometimes cause an "overload" which would result in a crash. git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@1873 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -2000,7 +2000,10 @@ UINT16 DisplayLBEInfo(UINT16 usPosY, UINT16 usIndex, UINT16 usFontHeight)
|
||||
}
|
||||
else
|
||||
{
|
||||
mbstowcs(pName,LBEPocketType[count].pName,80);
|
||||
//mbstowcs(pName,LBEPocketType[count].pName,80);
|
||||
for(UINT8 i = 0; i<14; i++)
|
||||
pName[i] = LBEPocketType[count].pName[i];
|
||||
//pName = LBEPocketType[count].pName;
|
||||
pName[14] = '\0';
|
||||
swprintf(sTemp, L"%s(x%d)", pName, pocketNum[count] );
|
||||
DrawTextToScreen(sTemp, BOBBYR_ITEM_WEIGHT_TEXT_X, (UINT16)usPosY, BOBBYR_ITEM_WEIGHT_NUM_WIDTH, BOBBYR_ITEM_DESC_TEXT_FONT, BOBBYR_ITEM_DESC_TEXT_COLOR, FONT_MCOLOR_BLACK, FALSE, LEFT_JUSTIFIED);
|
||||
@@ -3409,3 +3412,6 @@ void ReportBobbyROrderError( UINT16 usItemNumber, UINT8 ubPurchaseNum, UINT8 ubQ
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user