mirror of
https://github.com/1dot13/source.git
synced 2026-07-29 13:52:17 +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:
@@ -2813,14 +2813,16 @@ void CycleItemDescriptionItem( INT16 sX, INT16 sY )
|
||||
{
|
||||
usOldItem--;
|
||||
|
||||
if ( usOldItem < 1 )
|
||||
{
|
||||
usOldItem = MAXITEMS-1;
|
||||
}
|
||||
|
||||
while ( usOldItem > 0 && ( Item[usOldItem].usItemClass == IC_NONE || Item[usOldItem].usItemClass == 0 ))
|
||||
{
|
||||
usOldItem--;
|
||||
}
|
||||
|
||||
if ( usOldItem < 0 )
|
||||
{
|
||||
usOldItem = MAXITEMS-1;
|
||||
if(usOldItem < 1)
|
||||
usOldItem = MAXITEMS-1;
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -2835,6 +2837,8 @@ void CycleItemDescriptionItem( INT16 sX, INT16 sY )
|
||||
while (usOldItem < MAXITEMS && (Item[usOldItem].usItemClass == IC_NONE || Item[usOldItem].usItemClass == 0 ))
|
||||
{
|
||||
usOldItem++;
|
||||
if(usOldItem >= MAXITEMS)
|
||||
usOldItem = 1;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user