mirror of
https://github.com/1dot13/source.git
synced 2026-09-02 14:36:06 +02:00
- added VS2005 compability fix from Space Viking
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@766 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -142,7 +142,7 @@ UINT16 gusSubtitleBoxHeight;
|
||||
INT32 giTextBoxOverlay = -1;
|
||||
BOOLEAN gfFacePanelActive = FALSE;
|
||||
UINT32 guiScreenIDUsedWhenUICreated;
|
||||
INT16 gzQuoteStr[ QUOTE_MESSAGE_SIZE ];
|
||||
wchar_t gzQuoteStr[ QUOTE_MESSAGE_SIZE ];
|
||||
MOUSE_REGION gTextBoxMouseRegion;
|
||||
MOUSE_REGION gFacePopupMouseRegion;
|
||||
BOOLEAN gfUseAlternateDialogueFile = FALSE;
|
||||
@@ -187,12 +187,12 @@ void FaceOverlayClickCallback( MOUSE_REGION * pRegion, INT32 iReason );
|
||||
|
||||
|
||||
// Handler functions for tactical ui diaplay
|
||||
void HandleTacticalTextUI( INT32 iFaceIndex, SOLDIERTYPE *pSoldier, INT16 *zQuoteStr );
|
||||
void HandleTacticalNPCTextUI( UINT8 ubCharacterNum, INT16 *zQuoteStr );
|
||||
void HandleTacticalTextUI( INT32 iFaceIndex, SOLDIERTYPE *pSoldier, wchar_t *zQuoteStr );
|
||||
void HandleTacticalNPCTextUI( UINT8 ubCharacterNum, wchar_t *zQuoteStr );
|
||||
void HandleTacticalSpeechUI( UINT8 ubCharacterNum, INT32 iFaceIndex );
|
||||
|
||||
void DisplayTextForExternalNPC( UINT8 ubCharacterNum, STR16 zQuoteStr );
|
||||
void CreateTalkingUI( INT8 bUIHandlerID, INT32 iFaceIndex, UINT8 ubCharacterNum, SOLDIERTYPE *pSoldier, INT16 *zQuoteStr );
|
||||
void CreateTalkingUI( INT8 bUIHandlerID, INT32 iFaceIndex, UINT8 ubCharacterNum, SOLDIERTYPE *pSoldier, wchar_t *zQuoteStr );
|
||||
|
||||
|
||||
void HandleExternNPCSpeechFace( INT32 iIndex );
|
||||
@@ -1184,7 +1184,7 @@ void HandleDialogue( )
|
||||
MemFree( QItem );
|
||||
}
|
||||
|
||||
BOOLEAN GetDialogue( UINT8 ubCharacterNum, UINT16 usQuoteNum, UINT32 iDataSize, UINT16 * zDialogueText, UINT32 *puiSoundID, CHAR8 *zSoundString );
|
||||
BOOLEAN GetDialogue( UINT8 ubCharacterNum, UINT16 usQuoteNum, UINT32 iDataSize, wchar_t * zDialogueText, UINT32 *puiSoundID, CHAR8 *zSoundString );
|
||||
|
||||
|
||||
BOOLEAN DelayedTacticalCharacterDialogue( SOLDIERTYPE *pSoldier, UINT16 usQuoteNum )
|
||||
@@ -1621,7 +1621,7 @@ BOOLEAN ExecuteCharacterDialogue( UINT8 ubCharacterNum, UINT16 usQuoteNum, INT32
|
||||
CHECKF( iFaceIndex != -1 );
|
||||
|
||||
if ( !GetDialogue( ubCharacterNum,
|
||||
usQuoteNum, DIALOGUESIZE, (UINT16 *)gzQuoteStr, &uiSoundID, zSoundString) )
|
||||
usQuoteNum, DIALOGUESIZE, gzQuoteStr, &uiSoundID, zSoundString) )
|
||||
{
|
||||
return( FALSE );
|
||||
}
|
||||
@@ -1648,7 +1648,7 @@ BOOLEAN ExecuteCharacterDialogue( UINT8 ubCharacterNum, UINT16 usQuoteNum, INT32
|
||||
}
|
||||
|
||||
|
||||
void CreateTalkingUI( INT8 bUIHandlerID, INT32 iFaceIndex, UINT8 ubCharacterNum, SOLDIERTYPE *pSoldier, INT16 *zQuoteStr )
|
||||
void CreateTalkingUI( INT8 bUIHandlerID, INT32 iFaceIndex, UINT8 ubCharacterNum, SOLDIERTYPE *pSoldier, wchar_t *zQuoteStr )
|
||||
{
|
||||
|
||||
// Show text, if on
|
||||
@@ -1823,7 +1823,7 @@ BOOLEAN DialogueDataFileExistsForProfile( UINT8 ubCharacterNum, UINT16 usQuoteNu
|
||||
return( FileExists( (STR)pFilename ) );
|
||||
}
|
||||
|
||||
BOOLEAN GetDialogue( UINT8 ubCharacterNum, UINT16 usQuoteNum, UINT32 iDataSize, UINT16 * zDialogueText, UINT32 *puiSoundID, CHAR8 *zSoundString )
|
||||
BOOLEAN GetDialogue( UINT8 ubCharacterNum, UINT16 usQuoteNum, UINT32 iDataSize, wchar_t * zDialogueText, UINT32 *puiSoundID, CHAR8 *zSoundString )
|
||||
{
|
||||
UINT8 *pFilename;
|
||||
|
||||
@@ -1890,9 +1890,9 @@ BOOLEAN GetDialogue( UINT8 ubCharacterNum, UINT16 usQuoteNum, UINT32 iDataSize,
|
||||
|
||||
|
||||
// Handlers for tactical UI stuff
|
||||
void HandleTacticalNPCTextUI( UINT8 ubCharacterNum, INT16 *zQuoteStr )
|
||||
void HandleTacticalNPCTextUI( UINT8 ubCharacterNum, wchar_t *zQuoteStr )
|
||||
{
|
||||
INT16 zText[ QUOTE_MESSAGE_SIZE ];
|
||||
wchar_t zText[ QUOTE_MESSAGE_SIZE ];
|
||||
|
||||
// Setup dialogue text box
|
||||
if ( guiCurrentScreen != MAP_SCREEN )
|
||||
@@ -1952,9 +1952,9 @@ void DisplayTextForExternalNPC( UINT8 ubCharacterNum, STR16 zQuoteStr )
|
||||
}
|
||||
|
||||
|
||||
void HandleTacticalTextUI( INT32 iFaceIndex, SOLDIERTYPE *pSoldier, INT16 *zQuoteStr )
|
||||
void HandleTacticalTextUI( INT32 iFaceIndex, SOLDIERTYPE *pSoldier, wchar_t *zQuoteStr )
|
||||
{
|
||||
INT16 zText[ QUOTE_MESSAGE_SIZE ];
|
||||
wchar_t zText[ QUOTE_MESSAGE_SIZE ];
|
||||
INT16 sLeft = 0;
|
||||
|
||||
//BUild text
|
||||
|
||||
+2
-2
@@ -1387,12 +1387,12 @@ void HandleRenderFaceAdjustments( FACETYPE *pFace, BOOLEAN fDisplayBuffer, BOOLE
|
||||
|
||||
if ( pFace->fDisplayTextOver == FACE_DRAW_TEXT_OVER )
|
||||
{
|
||||
gprintfinvalidate( sFontX, sFontY, (UINT16 *)pFace->zDisplayText );
|
||||
gprintfinvalidate( sFontX, sFontY, pFace->zDisplayText );
|
||||
mprintf( sFontX, sFontY, pFace->zDisplayText );
|
||||
}
|
||||
else if ( pFace->fDisplayTextOver == FACE_ERASE_TEXT_OVER )
|
||||
{
|
||||
gprintfRestore( sFontX, sFontY, (UINT16 *)pFace->zDisplayText );
|
||||
gprintfRestore( sFontX, sFontY, pFace->zDisplayText );
|
||||
pFace->fDisplayTextOver = FACE_NO_TEXT_OVER;
|
||||
}
|
||||
|
||||
|
||||
@@ -3209,7 +3209,7 @@ BOOLEAN DrawItemPoolList( ITEM_POOL *pItemPool, INT16 sGridNo, UINT8 bCommand, I
|
||||
INT16 sY;
|
||||
INVTYPE *pItem;
|
||||
ITEM_POOL *pTempItemPool;
|
||||
INT16 pStr[ 100 ];
|
||||
wchar_t pStr[ 100 ];
|
||||
INT16 cnt = 0, sHeight = 0;
|
||||
INT16 sLargeLineWidth = 0, sLineWidth;
|
||||
BOOLEAN fRecalcNumListed = FALSE;
|
||||
@@ -3380,7 +3380,7 @@ BOOLEAN DrawItemPoolList( ITEM_POOL *pItemPool, INT16 sGridNo, UINT8 bCommand, I
|
||||
SetFontForeground( FONT_MCOLOR_DKGRAY );
|
||||
}
|
||||
swprintf( (wchar_t *)pStr, (wchar_t *)TacticalStr[ ITEMPOOL_POPUP_PREV_STR ] );
|
||||
gprintfdirty( sFontX, sY, (UINT16 *)pStr );
|
||||
gprintfdirty( sFontX, sY, pStr );
|
||||
mprintf( sFontX, sY, pStr );
|
||||
sY += GetFontHeight( SMALLFONT1 ) - 2;
|
||||
cnt++;
|
||||
@@ -3416,7 +3416,7 @@ BOOLEAN DrawItemPoolList( ITEM_POOL *pItemPool, INT16 sGridNo, UINT8 bCommand, I
|
||||
swprintf( (wchar_t *)pStr, (wchar_t *)L"%s", ShortItemNames[ gWorldItems[ pItemPool->iItemIndex ].o.usItem ] );
|
||||
}
|
||||
|
||||
gprintfdirty( sFontX, sY, (UINT16 *)pStr );
|
||||
gprintfdirty( sFontX, sY, pStr );
|
||||
mprintf( sFontX, sY, pStr );
|
||||
|
||||
sY += GetFontHeight( SMALLFONT1 ) - 2;
|
||||
@@ -3448,7 +3448,7 @@ BOOLEAN DrawItemPoolList( ITEM_POOL *pItemPool, INT16 sGridNo, UINT8 bCommand, I
|
||||
SetFontForeground( FONT_MCOLOR_DKGRAY );
|
||||
}
|
||||
swprintf( (wchar_t *)pStr, (wchar_t *)TacticalStr[ ITEMPOOL_POPUP_MORE_STR ] );
|
||||
gprintfdirty( sFontX, sY, (UINT16 *)pStr );
|
||||
gprintfdirty( sFontX, sY, pStr );
|
||||
mprintf( sFontX, sY, pStr );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2554,7 +2554,7 @@ UINT32 UIHandleCAMercShoot( UI_EVENT *pUIEvent )
|
||||
// If this is one of our own guys.....pop up requiester...
|
||||
if ( ( pTSoldier->bTeam == gbPlayerNum || pTSoldier->bTeam == MILITIA_TEAM ) && Item[ pSoldier->inv[ HANDPOS ].usItem ].usItemClass != IC_MEDKIT && !Item[pSoldier->inv[ HANDPOS ].usItem].gascan && gTacticalStatus.ubLastRequesterTargetID != pTSoldier->ubProfile && ( pTSoldier->ubID != pSoldier->ubID ) )
|
||||
{
|
||||
INT16 zStr[200];
|
||||
wchar_t zStr[200];
|
||||
|
||||
gpRequesterMerc = pSoldier;
|
||||
gpRequesterTargetMerc = pTSoldier;
|
||||
|
||||
@@ -4378,7 +4378,7 @@ BOOLEAN PlayerTeamHasTwoSpotsLeft( )
|
||||
void StartDialogueMessageBox( UINT8 ubProfileID, UINT16 usMessageBoxType )
|
||||
{
|
||||
INT32 iTemp;
|
||||
UINT16 zTemp[256], zTemp2[256];
|
||||
wchar_t zTemp[256], zTemp2[256];
|
||||
|
||||
gusDialogueMessageBoxType = usMessageBoxType;
|
||||
switch( gusDialogueMessageBoxType )
|
||||
|
||||
@@ -257,13 +257,13 @@ BOOLEAN gfInItemDescBox = FALSE;
|
||||
UINT32 guiCurrentItemDescriptionScreen=0;
|
||||
OBJECTTYPE *gpItemDescObject = NULL;
|
||||
BOOLEAN gfItemDescObjectIsAttachment = FALSE;
|
||||
UINT16 gzItemName[ SIZE_ITEM_NAME ];
|
||||
UINT16 gzItemDesc[ SIZE_ITEM_INFO ];
|
||||
UINT16 gzItemPros[ SIZE_ITEM_PROS ];
|
||||
UINT16 gzItemCons[ SIZE_ITEM_CONS ];
|
||||
UINT16 gzFullItemPros[ SIZE_ITEM_PROS ];
|
||||
UINT16 gzFullItemCons[ SIZE_ITEM_PROS ];
|
||||
UINT16 gzFullItemTemp[ SIZE_ITEM_PROS ]; // necessary, unfortunately
|
||||
wchar_t gzItemName[ SIZE_ITEM_NAME ];
|
||||
wchar_t gzItemDesc[ SIZE_ITEM_INFO ];
|
||||
wchar_t gzItemPros[ SIZE_ITEM_PROS ];
|
||||
wchar_t gzItemCons[ SIZE_ITEM_CONS ];
|
||||
wchar_t gzFullItemPros[ SIZE_ITEM_PROS ];
|
||||
wchar_t gzFullItemCons[ SIZE_ITEM_PROS ];
|
||||
wchar_t gzFullItemTemp[ SIZE_ITEM_PROS ]; // necessary, unfortunately
|
||||
void ItemDescCallback( MOUSE_REGION * pRegion, INT32 iReason );
|
||||
INT16 gsInvDescX;
|
||||
INT16 gsInvDescY;
|
||||
@@ -590,10 +590,10 @@ BOOLEAN AttemptToAddSubstring( STR16 zDest, STR16 zTemp, UINT32 * puiStringLengt
|
||||
}
|
||||
}
|
||||
|
||||
void GenerateProsString( UINT16 * zItemPros, OBJECTTYPE * pObject, UINT32 uiPixLimit )
|
||||
void GenerateProsString( wchar_t * zItemPros, OBJECTTYPE * pObject, UINT32 uiPixLimit )
|
||||
{
|
||||
UINT32 uiStringLength = 0;
|
||||
UINT16 * zTemp;
|
||||
wchar_t * zTemp;
|
||||
UINT16 usItem = pObject->usItem;
|
||||
UINT8 ubWeight;
|
||||
|
||||
@@ -714,10 +714,10 @@ void GenerateProsString( UINT16 * zItemPros, OBJECTTYPE * pObject, UINT32 uiPixL
|
||||
}
|
||||
}
|
||||
|
||||
void GenerateConsString( UINT16 * zItemCons, OBJECTTYPE * pObject, UINT32 uiPixLimit )
|
||||
void GenerateConsString( wchar_t * zItemCons, OBJECTTYPE * pObject, UINT32 uiPixLimit )
|
||||
{
|
||||
UINT32 uiStringLength = 0;
|
||||
UINT16 * zTemp;
|
||||
wchar_t * zTemp;
|
||||
UINT8 ubWeight;
|
||||
UINT16 usItem = pObject->usItem;
|
||||
|
||||
@@ -1058,7 +1058,7 @@ void RenderInvBodyPanel( SOLDIERTYPE *pSoldier, INT16 sX, INT16 sY )
|
||||
void HandleRenderInvSlots( SOLDIERTYPE *pSoldier, UINT8 fDirtyLevel )
|
||||
{
|
||||
INT32 cnt;
|
||||
static INT16 pStr[ 150 ];
|
||||
static wchar_t pStr[ 150 ];
|
||||
|
||||
if ( InItemDescriptionBox( ) || InItemStackPopup( ) || InKeyRingPopup( ) )
|
||||
{
|
||||
@@ -1999,7 +1999,7 @@ void INVRenderItem( UINT32 uiBuffer, SOLDIERTYPE * pSoldier, OBJECTTYPE *pObjec
|
||||
INT16 sFontX2, sFontY2;
|
||||
INT16 sFontX, sFontY;
|
||||
|
||||
static INT16 pStr[ 100 ], pStr2[ 100 ];
|
||||
static wchar_t pStr[ 100 ], pStr2[ 100 ];
|
||||
|
||||
if ( pObject->usItem == NOTHING )
|
||||
{
|
||||
@@ -2090,13 +2090,13 @@ void INVRenderItem( UINT32 uiBuffer, SOLDIERTYPE * pSoldier, OBJECTTYPE *pObjec
|
||||
//}
|
||||
|
||||
|
||||
swprintf( (wchar_t *)pStr, L"%d", pObject->ubGunShotsLeft );
|
||||
swprintf( pStr, L"%d", pObject->ubGunShotsLeft );
|
||||
if ( uiBuffer == guiSAVEBUFFER )
|
||||
{
|
||||
RestoreExternBackgroundRect( sNewX, sNewY, 20, 15 );
|
||||
}
|
||||
mprintf( sNewX, sNewY, pStr );
|
||||
gprintfinvalidate( sNewX, sNewY, (UINT16 *)pStr );
|
||||
gprintfinvalidate( sNewX, sNewY, pStr );
|
||||
|
||||
SetFontForeground( FONT_MCOLOR_DKGRAY );
|
||||
|
||||
@@ -2117,7 +2117,7 @@ void INVRenderItem( UINT32 uiBuffer, SOLDIERTYPE * pSoldier, OBJECTTYPE *pObjec
|
||||
VarFindFontCenterCoordinates( sX, sY, sWidth, sHeight , ITEM_FONT, &sNewX, &sNewY, pStr );
|
||||
|
||||
mprintf( sNewX, sNewY, pStr );
|
||||
gprintfinvalidate( sNewX, sNewY, (UINT16 *)pStr );
|
||||
gprintfinvalidate( sNewX, sNewY, pStr );
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -2142,7 +2142,7 @@ void INVRenderItem( UINT32 uiBuffer, SOLDIERTYPE * pSoldier, OBJECTTYPE *pObjec
|
||||
RestoreExternBackgroundRect( sNewX, sNewY, 15, 15 );
|
||||
}
|
||||
mprintf( sNewX, sNewY, pStr );
|
||||
gprintfinvalidate( sNewX, sNewY, (UINT16 *)pStr );
|
||||
gprintfinvalidate( sNewX, sNewY, pStr );
|
||||
}
|
||||
|
||||
}
|
||||
@@ -2172,7 +2172,7 @@ void INVRenderItem( UINT32 uiBuffer, SOLDIERTYPE * pSoldier, OBJECTTYPE *pObjec
|
||||
RestoreExternBackgroundRect( sNewX, sNewY, 15, 15 );
|
||||
}
|
||||
mprintf( sNewX, sNewY, pStr );
|
||||
gprintfinvalidate( sNewX, sNewY, (UINT16 *)pStr );
|
||||
gprintfinvalidate( sNewX, sNewY, pStr );
|
||||
|
||||
}
|
||||
|
||||
@@ -2215,7 +2215,7 @@ void INVRenderItem( UINT32 uiBuffer, SOLDIERTYPE * pSoldier, OBJECTTYPE *pObjec
|
||||
RestoreExternBackgroundRect( sNewX, sNewY, 15, 15 );
|
||||
}
|
||||
mprintf( sNewX, sNewY, pStr );
|
||||
gprintfinvalidate( sNewX, sNewY, (UINT16 *)pStr );
|
||||
gprintfinvalidate( sNewX, sNewY, pStr );
|
||||
|
||||
}
|
||||
|
||||
@@ -2246,13 +2246,13 @@ void INVRenderItem( UINT32 uiBuffer, SOLDIERTYPE * pSoldier, OBJECTTYPE *pObjec
|
||||
|
||||
VarFindFontCenterCoordinates( sX, sY, sWidth, sHeight , ITEM_FONT, &sFontX, &sFontY, pStr );
|
||||
sFontY = sY + 1;
|
||||
gprintfinvalidate( sFontX, sFontY, (UINT16 *)pStr );
|
||||
gprintfinvalidate( sFontX, sFontY, pStr );
|
||||
|
||||
if ( fLineSplit )
|
||||
{
|
||||
VarFindFontCenterCoordinates( sX, sY, sWidth, sHeight , ITEM_FONT, &sFontX2, &sFontY2, pStr2 );
|
||||
sFontY2 = sY + 13;
|
||||
gprintfinvalidate( sFontX2, sFontY2, (UINT16 *)pStr2 );
|
||||
gprintfinvalidate( sFontX2, sFontY2, pStr2 );
|
||||
}
|
||||
|
||||
}
|
||||
@@ -2269,11 +2269,11 @@ void INVRenderItem( UINT32 uiBuffer, SOLDIERTYPE * pSoldier, OBJECTTYPE *pObjec
|
||||
else if ( *pubHighlightCounter == 1 )
|
||||
{
|
||||
*pubHighlightCounter = 0;
|
||||
gprintfRestore( sFontX, sFontY, (UINT16 *)pStr );
|
||||
gprintfRestore( sFontX, sFontY, pStr );
|
||||
|
||||
if ( fLineSplit )
|
||||
{
|
||||
gprintfRestore( sFontX2, sFontY2, (UINT16 *)pStr2 );
|
||||
gprintfRestore( sFontX2, sFontY2, pStr2 );
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -2797,7 +2797,7 @@ BOOLEAN ReloadItemDesc( )
|
||||
void ItemDescAmmoCallback(GUI_BUTTON *btn,INT32 reason)
|
||||
{
|
||||
static BOOLEAN fRightDown = FALSE;
|
||||
INT16 pStr[10];
|
||||
wchar_t pStr[10];
|
||||
|
||||
/* region gets disabled in SKI for shopkeeper boxes. It now works normally for merc's inventory boxes!
|
||||
//if we are currently in the shopkeeper interface, return;
|
||||
@@ -2830,7 +2830,7 @@ void ItemDescAmmoCallback(GUI_BUTTON *btn,INT32 reason)
|
||||
gpItemPointerSoldier = gpItemDescSoldier;
|
||||
|
||||
swprintf( (wchar_t *)pStr, L"0" );
|
||||
SpecifyButtonText( giItemDescAmmoButton, (UINT16 *)pStr );
|
||||
SpecifyButtonText( giItemDescAmmoButton, pStr );
|
||||
|
||||
// Set mouse
|
||||
guiExternVo = GetInterfaceGraphicForItem( &(Item[ gpItemPointer->usItem ]) );
|
||||
@@ -2862,7 +2862,7 @@ void ItemDescAmmoCallback(GUI_BUTTON *btn,INT32 reason)
|
||||
fInterfacePanelDirty = DIRTYLEVEL2;
|
||||
|
||||
swprintf( (wchar_t *)pStr, L"0" );
|
||||
SpecifyButtonText( giItemDescAmmoButton, (UINT16 *)pStr );
|
||||
SpecifyButtonText( giItemDescAmmoButton, pStr );
|
||||
|
||||
fItemDescDelete = TRUE;
|
||||
}
|
||||
@@ -7383,7 +7383,7 @@ BOOLEAN AttemptToApplyCamo( SOLDIERTYPE *pSoldier, UINT16 usItemIndex )
|
||||
|
||||
|
||||
|
||||
void GetHelpTextForItem( INT16 * pzStr, OBJECTTYPE *pObject, SOLDIERTYPE *pSoldier )
|
||||
void GetHelpTextForItem( wchar_t * pzStr, OBJECTTYPE *pObject, SOLDIERTYPE *pSoldier )
|
||||
{
|
||||
INT16 pStr[ 250 ];
|
||||
UINT16 usItem = pObject->usItem;
|
||||
|
||||
@@ -134,7 +134,7 @@ UINT32 GetInterfaceGraphicForItem( INVTYPE *pItem );
|
||||
UINT16 GetTileGraphicForItem( INVTYPE *pItem );
|
||||
BOOLEAN LoadTileGraphicForItem( INVTYPE *pItem, UINT32 *puiVo );
|
||||
|
||||
void GetHelpTextForItem( INT16 * pzStr, OBJECTTYPE *pObject, SOLDIERTYPE *pSoldier );
|
||||
void GetHelpTextForItem( wchar_t * pzStr, OBJECTTYPE *pObject, SOLDIERTYPE *pSoldier );
|
||||
|
||||
BOOLEAN AttemptToApplyCamo( SOLDIERTYPE *pSoldier, UINT16 usItemIndex );
|
||||
|
||||
|
||||
@@ -3795,7 +3795,7 @@ void RenderTEAMPanel( BOOLEAN fDirty )
|
||||
INT16 sFontX, sFontY;
|
||||
UINT32 cnt, posIndex;
|
||||
SOLDIERTYPE *pSoldier;
|
||||
static INT16 pStr[ 200 ], pMoraleStr[ 20 ];
|
||||
static wchar_t pStr[ 200 ], pMoraleStr[ 20 ];
|
||||
|
||||
// WANNE 2 <new>
|
||||
if ( fDirty == DIRTYLEVEL2 )
|
||||
|
||||
+25
-25
@@ -111,7 +111,7 @@ typedef struct
|
||||
TOP_MESSAGE gTopMessage;
|
||||
BOOLEAN gfTopMessageDirty = FALSE;
|
||||
|
||||
void CreateTopMessage( UINT32 uiSurface, UINT8 ubType, UINT16 * psString );
|
||||
void CreateTopMessage( UINT32 uiSurface, UINT8 ubType, wchar_t * psString );
|
||||
|
||||
extern UINT16 GetAnimStateForInteraction( SOLDIERTYPE *pSoldier, BOOLEAN fDoor, UINT16 usAnimState );
|
||||
|
||||
@@ -681,7 +681,7 @@ void PopupMovementMenu( UI_EVENT *pUIEvent )
|
||||
SOLDIERTYPE *pSoldier = NULL;
|
||||
INT32 iMenuAnchorX, iMenuAnchorY;
|
||||
UINT32 uiActionImages;
|
||||
INT16 zActionString[ 50 ];
|
||||
wchar_t zActionString[ 50 ];
|
||||
BOOLEAN fDisableAction = FALSE;
|
||||
|
||||
// Erase other menus....
|
||||
@@ -920,7 +920,7 @@ void PopupMovementMenu( UI_EVENT *pUIEvent )
|
||||
return;
|
||||
}
|
||||
//SetButtonSavedRect( iActionIcons[ ACTIONC_ICON ] );
|
||||
SetButtonFastHelpText( iActionIcons[ ACTIONC_ICON ], (UINT16 *)zActionString );
|
||||
SetButtonFastHelpText( iActionIcons[ ACTIONC_ICON ], zActionString );
|
||||
ButtonList[ iActionIcons[ ACTIONC_ICON ] ]->UserData[0] = (UINT32)pUIEvent;
|
||||
|
||||
if ( fDisableAction )
|
||||
@@ -1489,8 +1489,8 @@ void DrawSelectedUIAboveGuy( UINT16 usSoldierID )
|
||||
INT16 sX, sY;
|
||||
INT32 iBack;
|
||||
TILE_ELEMENT TileElem;
|
||||
UINT16 *pStr;
|
||||
UINT16 NameStr[ 50 ];
|
||||
wchar_t *pStr;
|
||||
wchar_t NameStr[ 50 ];
|
||||
UINT16 usGraphicToUse = THIRDPOINTERS1;
|
||||
BOOLEAN fRaiseName = FALSE;
|
||||
BOOLEAN fDoName = TRUE;
|
||||
@@ -1836,7 +1836,7 @@ void RenderOverlayMessage( VIDEO_OVERLAY *pBlitter )
|
||||
}
|
||||
|
||||
|
||||
void BeginOverlayMessage( UINT32 uiFont, UINT16 *pFontString, ... )
|
||||
void BeginOverlayMessage( UINT32 uiFont, wchar_t *pFontString, ... )
|
||||
{
|
||||
va_list argptr;
|
||||
VIDEO_OVERLAY_DESC VideoOverlayDesc;
|
||||
@@ -2215,7 +2215,7 @@ BOOLEAN InitDoorOpenMenu( SOLDIERTYPE *pSoldier, STRUCTURE *pStructure, UINT8 ub
|
||||
void PopupDoorOpenMenu( BOOLEAN fClosingDoor )
|
||||
{
|
||||
INT32 iMenuAnchorX, iMenuAnchorY;
|
||||
INT16 zDisp[ 100 ];
|
||||
wchar_t zDisp[ 100 ];
|
||||
|
||||
iMenuAnchorX = gOpenDoorMenu.sX;
|
||||
iMenuAnchorY = gOpenDoorMenu.sY;
|
||||
@@ -2250,7 +2250,7 @@ void PopupDoorOpenMenu( BOOLEAN fClosingDoor )
|
||||
{
|
||||
swprintf( (wchar_t *)zDisp, L"%s ( %d )", pTacticalPopupButtonStrings[ USE_KEYRING_ICON ], AP_UNLOCK_DOOR );
|
||||
}
|
||||
SetButtonFastHelpText( iActionIcons[ USE_KEYRING_ICON ], (UINT16 *)zDisp );
|
||||
SetButtonFastHelpText( iActionIcons[ USE_KEYRING_ICON ], zDisp );
|
||||
|
||||
if ( !EnoughPoints( gOpenDoorMenu.pSoldier, AP_UNLOCK_DOOR, BP_UNLOCK_DOOR, FALSE ) || fClosingDoor || AM_AN_EPC( gOpenDoorMenu.pSoldier ) )
|
||||
{
|
||||
@@ -2281,7 +2281,7 @@ void PopupDoorOpenMenu( BOOLEAN fClosingDoor )
|
||||
{
|
||||
swprintf( (wchar_t *)zDisp, L"%s ( %d )", pTacticalPopupButtonStrings[ USE_CROWBAR_ICON ], AP_USE_CROWBAR );
|
||||
}
|
||||
SetButtonFastHelpText( iActionIcons[ USE_CROWBAR_ICON ], (UINT16 *)zDisp );
|
||||
SetButtonFastHelpText( iActionIcons[ USE_CROWBAR_ICON ], zDisp );
|
||||
|
||||
// Greyout if no crowbar found...
|
||||
if ( FindUsableCrowbar ( gOpenDoorMenu.pSoldier ) == NO_SLOT || fClosingDoor )
|
||||
@@ -2311,7 +2311,7 @@ void PopupDoorOpenMenu( BOOLEAN fClosingDoor )
|
||||
{
|
||||
swprintf( (wchar_t *)zDisp, L"%s ( %d )", pTacticalPopupButtonStrings[ LOCKPICK_DOOR_ICON ], AP_PICKLOCK );
|
||||
}
|
||||
SetButtonFastHelpText( iActionIcons[ LOCKPICK_DOOR_ICON ], (UINT16 *)zDisp );
|
||||
SetButtonFastHelpText( iActionIcons[ LOCKPICK_DOOR_ICON ], zDisp );
|
||||
|
||||
if ( !EnoughPoints( gOpenDoorMenu.pSoldier, AP_PICKLOCK, BP_PICKLOCK, FALSE ) || fClosingDoor || AM_AN_EPC( gOpenDoorMenu.pSoldier ) )
|
||||
{
|
||||
@@ -2343,7 +2343,7 @@ void PopupDoorOpenMenu( BOOLEAN fClosingDoor )
|
||||
{
|
||||
swprintf( (wchar_t *)zDisp, L"%s ( %d )", pTacticalPopupButtonStrings[ EXPLOSIVE_DOOR_ICON ], AP_EXPLODE_DOOR );
|
||||
}
|
||||
SetButtonFastHelpText( iActionIcons[ EXPLOSIVE_DOOR_ICON ], (UINT16 *)zDisp );
|
||||
SetButtonFastHelpText( iActionIcons[ EXPLOSIVE_DOOR_ICON ], zDisp );
|
||||
|
||||
if ( !EnoughPoints( gOpenDoorMenu.pSoldier, AP_EXPLODE_DOOR, BP_EXPLODE_DOOR, FALSE ) || fClosingDoor || AM_AN_EPC( gOpenDoorMenu.pSoldier ) )
|
||||
{
|
||||
@@ -2389,7 +2389,7 @@ void PopupDoorOpenMenu( BOOLEAN fClosingDoor )
|
||||
swprintf( (wchar_t *)zDisp, L"%s ( %d )", pTacticalPopupButtonStrings[ OPEN_DOOR_ICON ], AP_OPEN_DOOR );
|
||||
}
|
||||
}
|
||||
SetButtonFastHelpText( iActionIcons[ OPEN_DOOR_ICON ], (UINT16 *)zDisp );
|
||||
SetButtonFastHelpText( iActionIcons[ OPEN_DOOR_ICON ], zDisp );
|
||||
|
||||
if ( !EnoughPoints( gOpenDoorMenu.pSoldier, AP_OPEN_DOOR, BP_OPEN_DOOR, FALSE ) )
|
||||
{
|
||||
@@ -2415,7 +2415,7 @@ void PopupDoorOpenMenu( BOOLEAN fClosingDoor )
|
||||
{
|
||||
swprintf( (wchar_t *)zDisp, L"%s ( %d )", pTacticalPopupButtonStrings[ EXAMINE_DOOR_ICON ], AP_EXAMINE_DOOR );
|
||||
}
|
||||
SetButtonFastHelpText( iActionIcons[ EXAMINE_DOOR_ICON ], (UINT16 *)zDisp );
|
||||
SetButtonFastHelpText( iActionIcons[ EXAMINE_DOOR_ICON ], zDisp );
|
||||
|
||||
if ( !EnoughPoints( gOpenDoorMenu.pSoldier, AP_EXAMINE_DOOR, BP_EXAMINE_DOOR, FALSE ) || fClosingDoor || AM_AN_EPC( gOpenDoorMenu.pSoldier ) )
|
||||
{
|
||||
@@ -2439,7 +2439,7 @@ void PopupDoorOpenMenu( BOOLEAN fClosingDoor )
|
||||
{
|
||||
swprintf( (wchar_t *)zDisp, L"%s ( %d )", pTacticalPopupButtonStrings[ BOOT_DOOR_ICON ], AP_BOOT_DOOR );
|
||||
}
|
||||
SetButtonFastHelpText( iActionIcons[ BOOT_DOOR_ICON ], (UINT16 *)zDisp );
|
||||
SetButtonFastHelpText( iActionIcons[ BOOT_DOOR_ICON ], zDisp );
|
||||
|
||||
if ( !EnoughPoints( gOpenDoorMenu.pSoldier, AP_BOOT_DOOR, BP_BOOT_DOOR, FALSE ) || fClosingDoor || AM_AN_EPC( gOpenDoorMenu.pSoldier ) )
|
||||
{
|
||||
@@ -2464,7 +2464,7 @@ void PopupDoorOpenMenu( BOOLEAN fClosingDoor )
|
||||
{
|
||||
swprintf( (wchar_t *)zDisp, L"%s ( %d )", pTacticalPopupButtonStrings[ UNTRAP_DOOR_ICON ], AP_UNTRAP_DOOR );
|
||||
}
|
||||
SetButtonFastHelpText( iActionIcons[ UNTRAP_DOOR_ICON ], (UINT16 *)zDisp );
|
||||
SetButtonFastHelpText( iActionIcons[ UNTRAP_DOOR_ICON ], zDisp );
|
||||
|
||||
if ( !EnoughPoints( gOpenDoorMenu.pSoldier, AP_UNTRAP_DOOR, BP_UNTRAP_DOOR, FALSE ) || fClosingDoor || AM_AN_EPC( gOpenDoorMenu.pSoldier ) )
|
||||
{
|
||||
@@ -2752,7 +2752,7 @@ void RenderUIMessage( VIDEO_OVERLAY *pBlitter )
|
||||
}
|
||||
|
||||
|
||||
void InternalBeginUIMessage( BOOLEAN fUseSkullIcon, UINT16 *pFontString, ... )
|
||||
void InternalBeginUIMessage( BOOLEAN fUseSkullIcon, wchar_t *pFontString, ... )
|
||||
{
|
||||
va_list argptr;
|
||||
VIDEO_OVERLAY_DESC VideoOverlayDesc;
|
||||
@@ -2812,7 +2812,7 @@ void InternalBeginUIMessage( BOOLEAN fUseSkullIcon, UINT16 *pFontString, ... )
|
||||
gfUseSkullIconMessage = fUseSkullIcon;
|
||||
}
|
||||
|
||||
void BeginUIMessage( UINT16 *pFontString, ... )
|
||||
void BeginUIMessage( wchar_t *pFontString, ... )
|
||||
{
|
||||
va_list argptr;
|
||||
wchar_t MsgString[512];
|
||||
@@ -2825,7 +2825,7 @@ void BeginUIMessage( UINT16 *pFontString, ... )
|
||||
}
|
||||
|
||||
|
||||
void BeginMapUIMessage( UINT8 ubPosition, UINT16 *pFontString, ... )
|
||||
void BeginMapUIMessage( UINT8 ubPosition, wchar_t *pFontString, ... )
|
||||
{
|
||||
va_list argptr;
|
||||
VIDEO_OVERLAY_DESC VideoOverlayDesc;
|
||||
@@ -2919,7 +2919,7 @@ void EndUIMessage( )
|
||||
#define PLAYER_TEAM_TIMER_TICKS_PER_ENEMY ( 2000 / PLAYER_TEAM_TIMER_SEC_PER_TICKS )
|
||||
|
||||
|
||||
BOOLEAN AddTopMessage( UINT8 ubType, UINT16 * pzString )
|
||||
BOOLEAN AddTopMessage( UINT8 ubType, wchar_t * pzString )
|
||||
{
|
||||
UINT32 cnt;
|
||||
BOOLEAN fFound = FALSE;
|
||||
@@ -2956,7 +2956,7 @@ BOOLEAN AddTopMessage( UINT8 ubType, UINT16 * pzString )
|
||||
return( FALSE );
|
||||
}
|
||||
|
||||
void CreateTopMessage( UINT32 uiSurface, UINT8 ubType, UINT16 * psString )
|
||||
void CreateTopMessage( UINT32 uiSurface, UINT8 ubType, wchar_t * psString )
|
||||
{
|
||||
UINT32 uiBAR, uiPLAYERBAR, uiINTBAR;
|
||||
VOBJECT_DESC VObjectDesc;
|
||||
@@ -3260,7 +3260,7 @@ void HandleTopMessages( )
|
||||
if ( !gTopMessage.fCreated )
|
||||
{
|
||||
gfTopMessageDirty = TRUE;
|
||||
AddTopMessage( gTacticalStatus.ubTopMessageType, (UINT16 *)gTacticalStatus.zTopMessageString );
|
||||
AddTopMessage( gTacticalStatus.ubTopMessageType, gTacticalStatus.zTopMessageString );
|
||||
}
|
||||
|
||||
if ( gTacticalStatus.ubTopMessageType == COMPUTER_TURN_MESSAGE ||
|
||||
@@ -3285,7 +3285,7 @@ void HandleTopMessages( )
|
||||
gTacticalStatus.usTactialTurnLimitCounter = ( ( gubProgCurEnemy ) * PLAYER_TEAM_TIMER_TICKS_PER_ENEMY );
|
||||
}
|
||||
|
||||
CreateTopMessage( gTopMessage.uiSurface, gTacticalStatus.ubTopMessageType, (UINT16 *)gTacticalStatus.zTopMessageString );
|
||||
CreateTopMessage( gTopMessage.uiSurface, gTacticalStatus.ubTopMessageType, gTacticalStatus.zTopMessageString );
|
||||
}
|
||||
}
|
||||
else if ( gGameOptions.fTurnTimeLimit )
|
||||
@@ -3329,7 +3329,7 @@ void HandleTopMessages( )
|
||||
gTacticalStatus.usTactialTurnLimitCounter++;
|
||||
}
|
||||
|
||||
CreateTopMessage( gTopMessage.uiSurface, gTacticalStatus.ubTopMessageType, (UINT16 *)gTacticalStatus.zTopMessageString );
|
||||
CreateTopMessage( gTopMessage.uiSurface, gTacticalStatus.ubTopMessageType, gTacticalStatus.zTopMessageString );
|
||||
|
||||
// Have we reached max?
|
||||
if ( gTacticalStatus.usTactialTurnLimitCounter == ( gTacticalStatus.usTactialTurnLimitMax - 1) )
|
||||
@@ -3501,7 +3501,7 @@ void UpdateEnemyUIBar( )
|
||||
if ( gTacticalStatus.ubTopMessageType == COMPUTER_TURN_MESSAGE )
|
||||
{
|
||||
// Update message!
|
||||
CreateTopMessage( gTopMessage.uiSurface, COMPUTER_TURN_MESSAGE, (UINT16 *)gTacticalStatus.zTopMessageString );
|
||||
CreateTopMessage( gTopMessage.uiSurface, COMPUTER_TURN_MESSAGE, gTacticalStatus.zTopMessageString );
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -3598,7 +3598,7 @@ void DoorMenuBackregionCallback( MOUSE_REGION * pRegion, INT32 iReason )
|
||||
}
|
||||
}
|
||||
|
||||
UINT16 *GetSoldierHealthString( SOLDIERTYPE *pSoldier )
|
||||
wchar_t *GetSoldierHealthString( SOLDIERTYPE *pSoldier )
|
||||
{
|
||||
INT32 cnt, cntStart;
|
||||
if( pSoldier->bLife == pSoldier->bLifeMax )
|
||||
|
||||
@@ -146,7 +146,7 @@ void CancelOpenDoorMenu( );
|
||||
|
||||
void HandleInterfaceBackgrounds( );
|
||||
|
||||
void BeginOverlayMessage( UINT32 uiFont, UINT16 *pFontString, ... );
|
||||
void BeginOverlayMessage( UINT32 uiFont, wchar_t *pFontString, ... );
|
||||
void EndOverlayMessage( );
|
||||
|
||||
|
||||
@@ -177,12 +177,12 @@ void DirtyMercPanelInterface( SOLDIERTYPE *pSoldier, UINT8 ubDirtyLevel );
|
||||
|
||||
|
||||
void EndUIMessage( );
|
||||
void BeginUIMessage( UINT16 *pFontString, ... );
|
||||
void InternalBeginUIMessage( BOOLEAN fUseSkullIcon, UINT16 *pFontString, ... );
|
||||
void BeginUIMessage( wchar_t *pFontString, ... );
|
||||
void InternalBeginUIMessage( BOOLEAN fUseSkullIcon, wchar_t *pFontString, ... );
|
||||
|
||||
|
||||
// map screen version, for centering over the map area
|
||||
void BeginMapUIMessage( UINT8 fPosition, UINT16 *pFontString, ... );
|
||||
void BeginMapUIMessage( UINT8 fPosition, wchar_t *pFontString, ... );
|
||||
|
||||
|
||||
extern UINT16 gusUIOldSelectedSoldier;
|
||||
@@ -204,7 +204,7 @@ enum MESSAGE_TYPES
|
||||
|
||||
void HandleTopMessages( );
|
||||
|
||||
BOOLEAN AddTopMessage( UINT8 ubType, UINT16 * pzString );
|
||||
BOOLEAN AddTopMessage( UINT8 ubType, wchar_t * pzString );
|
||||
|
||||
BOOLEAN InTopMessageBarAnimation( );
|
||||
void EndTopMessage( );
|
||||
@@ -213,7 +213,7 @@ void PauseRT( BOOLEAN fPause );
|
||||
|
||||
void InitEnemyUIBar( UINT8 ubNumEnemies, UINT8 ubDoneEnemies );
|
||||
|
||||
UINT16 *GetSoldierHealthString( SOLDIERTYPE *pSoldier );
|
||||
wchar_t *GetSoldierHealthString( SOLDIERTYPE *pSoldier );
|
||||
|
||||
|
||||
void GetLaunchItemParamsFromUI( );
|
||||
|
||||
+3
-3
@@ -1866,7 +1866,7 @@ BOOLEAN ValidItemAttachment( OBJECTTYPE * pObj, UINT16 usAttachment, BOOLEAN fAt
|
||||
if ( fAttemptingAttachment && ValidAttachmentClass( usAttachment, pObj->usItem ) )
|
||||
{
|
||||
// well, maybe the player thought he could
|
||||
UINT16 zTemp[ 100 ];
|
||||
wchar_t zTemp[ 100 ];
|
||||
|
||||
swprintf( zTemp, Message[ STR_CANT_ATTACH ], ItemNames[ usAttachment ], ItemNames[ pObj->usItem ] );
|
||||
ScreenMsg( FONT_MCOLOR_LTYELLOW, MSG_UI_FEEDBACK, zTemp );
|
||||
@@ -3790,7 +3790,7 @@ BOOLEAN PlaceObject( SOLDIERTYPE * pSoldier, INT8 bPos, OBJECTTYPE * pObj )
|
||||
{
|
||||
if ( !CompatibleFaceItem( pObj->usItem, pSoldier->inv[ HEAD2POS ].usItem ) )
|
||||
{
|
||||
UINT16 zTemp[ 150 ];
|
||||
wchar_t zTemp[ 150 ];
|
||||
|
||||
swprintf( zTemp, Message[ STR_CANT_USE_TWO_ITEMS ], ItemNames[ pObj->usItem ], ItemNames[ pSoldier->inv[ HEAD2POS ].usItem ] );
|
||||
ScreenMsg( FONT_MCOLOR_LTYELLOW, MSG_UI_FEEDBACK, zTemp );
|
||||
@@ -3801,7 +3801,7 @@ BOOLEAN PlaceObject( SOLDIERTYPE * pSoldier, INT8 bPos, OBJECTTYPE * pObj )
|
||||
{
|
||||
if ( !CompatibleFaceItem( pObj->usItem, pSoldier->inv[ HEAD1POS ].usItem ) )
|
||||
{
|
||||
UINT16 zTemp[ 150 ];
|
||||
wchar_t zTemp[ 150 ];
|
||||
|
||||
swprintf( zTemp, Message[ STR_CANT_USE_TWO_ITEMS ], ItemNames[ pObj->usItem ], ItemNames[ pSoldier->inv[ HEAD1POS ].usItem ] );
|
||||
ScreenMsg( FONT_MCOLOR_LTYELLOW, MSG_UI_FEEDBACK, zTemp );
|
||||
|
||||
@@ -233,7 +233,7 @@ void HandleMilitiaPromotions( void )
|
||||
{
|
||||
// ATE: Problems here with bringing up message box...
|
||||
|
||||
// UINT16 str[ 512 ];
|
||||
// wchar_t str[ 512 ];
|
||||
// BuildMilitiaPromotionsString( str );
|
||||
// DoScreenIndependantMessageBox( str, MSG_BOX_FLAG_OK, NULL );
|
||||
}
|
||||
|
||||
+1
-1
@@ -121,7 +121,7 @@ typedef struct
|
||||
UINT16 usTactialTurnLimitCounter;
|
||||
BOOLEAN fInTopMessage;
|
||||
UINT8 ubTopMessageType;
|
||||
INT16 zTopMessageString[20];
|
||||
wchar_t zTopMessageString[20];
|
||||
UINT16 usTactialTurnLimitMax;
|
||||
UINT32 uiTactialTurnLimitClock;
|
||||
BOOLEAN fTactialTurnLimitStartedBeep;
|
||||
|
||||
@@ -7759,7 +7759,7 @@ void BuildItemHelpTextString( wchar_t sString[], INVENTORY_IN_SLOT *pInv, UINT8
|
||||
|
||||
if( pInv != NULL )
|
||||
{
|
||||
GetHelpTextForItem( (INT16 *)zHelpText, &( pInv->ItemObject ), NULL );
|
||||
GetHelpTextForItem( zHelpText, &( pInv->ItemObject ), NULL );
|
||||
|
||||
// add repair time for items in a repairman's offer area
|
||||
if ( ( ubScreenArea == ARMS_DEALER_OFFER_AREA ) &&
|
||||
|
||||
@@ -378,7 +378,7 @@ typedef struct
|
||||
INT8 bScientific;
|
||||
// traits
|
||||
INT16 sWeightCarriedAtTurnStart;
|
||||
UINT16 name[ 10 ];
|
||||
wchar_t name[ 10 ];
|
||||
|
||||
INT8 bVisible; // to render or not to render...
|
||||
|
||||
|
||||
@@ -109,7 +109,7 @@ typedef struct
|
||||
|
||||
//Kris: Additions November 16, 1997 (padding down to 129 from 150)
|
||||
BOOLEAN fVisible;
|
||||
UINT16 name[ 10 ];
|
||||
wchar_t name[ 10 ];
|
||||
|
||||
UINT8 ubSoldierClass; //army, administrator, elite
|
||||
|
||||
|
||||
@@ -1865,7 +1865,7 @@ void AddSoldierInitListBloodcats()
|
||||
ubSectorID != SEC_I16 && ubSectorID != SEC_N5 )
|
||||
{
|
||||
#ifdef JA2BETAVERSION
|
||||
UINT16 str[200];
|
||||
wchar_t str[200];
|
||||
swprintf( str, L"Table specifies that there are %d bloodcat placements in sector %c%d, but the map actually has %d bloodcat placements. Map value takes precedence. KM,LC:1",
|
||||
pSector->bBloodCatPlacements, gWorldSectorY + 'A' - 1, gWorldSectorX, bBloodCatPlacements );
|
||||
DoScreenIndependantMessageBox( str, MSG_BOX_FLAG_OK, NULL );
|
||||
@@ -2101,7 +2101,7 @@ BOOLEAN ValidateSoldierInitLinks( UINT8 ubCode )
|
||||
{
|
||||
SOLDIERINITNODE *curr;
|
||||
UINT32 uiNumInvalids = 0;
|
||||
UINT16 str[512];
|
||||
wchar_t str[512];
|
||||
curr = gSoldierInitHead;
|
||||
while( curr )
|
||||
{
|
||||
|
||||
@@ -522,7 +522,7 @@ void UpdateSectorExitMenu( )
|
||||
MSYS_DisableRegion(&(gExitDialog.SingleRegion) );
|
||||
if( gExitDialog.fSelectedMercIsEPC )
|
||||
{ //EPCs cannot leave the sector alone and must be escorted
|
||||
UINT16 str[ 256 ];
|
||||
wchar_t str[ 256 ];
|
||||
swprintf( str, pExitingSectorHelpText[ EXIT_GUI_ESCORTED_CHARACTERS_MUST_BE_ESCORTED_HELPTEXT ], MercPtrs[ gusSelectedSoldier ]->name );
|
||||
SetButtonFastHelpText( gExitDialog.uiSingleMoveButton, str );
|
||||
SetRegionFastHelpText( &gExitDialog.SingleRegion, str );
|
||||
@@ -531,7 +531,7 @@ void UpdateSectorExitMenu( )
|
||||
{ //It has been previously determined that there are only two mercs in the squad, the selected merc
|
||||
//isn't an EPC, but the other merc is. That means that this merc cannot leave the sector alone
|
||||
//as he would isolate the EPC.
|
||||
UINT16 str[ 256 ];
|
||||
wchar_t str[ 256 ];
|
||||
if( !gExitDialog.fSquadHasMultipleEPCs )
|
||||
{
|
||||
if( gMercProfiles[ MercPtrs[ gusSelectedSoldier ]->ubProfile ].bSex == MALE )
|
||||
@@ -562,7 +562,7 @@ void UpdateSectorExitMenu( )
|
||||
}
|
||||
else
|
||||
{
|
||||
UINT16 str[ 256 ];
|
||||
wchar_t str[ 256 ];
|
||||
EnableButton( gExitDialog.uiSingleMoveButton );
|
||||
MSYS_EnableRegion(&(gExitDialog.SingleRegion) );
|
||||
swprintf( str, pExitingSectorHelpText[ EXIT_GUI_SINGLE_TRAVERSAL_WILL_SEPARATE_SQUADS_HELPTEXT ], MercPtrs[ gusSelectedSoldier ]->name );
|
||||
@@ -698,7 +698,7 @@ BOOLEAN HandleSectorExitMenu( )
|
||||
|
||||
void RemoveSectorExitMenu( BOOLEAN fOk )
|
||||
{
|
||||
INT16 Str[ 50 ];
|
||||
wchar_t Str[ 50 ];
|
||||
|
||||
if ( gfInSectorExitMenu )
|
||||
{
|
||||
|
||||
@@ -3832,7 +3832,7 @@ BOOLEAN HandleCheckForExitArrowsInput( BOOLEAN fAdjustConfirm )
|
||||
}
|
||||
else if( gubLoneMercAttemptingToAbandonEPCs )
|
||||
{
|
||||
UINT16 str[256];
|
||||
wchar_t str[256];
|
||||
if( gubLoneMercAttemptingToAbandonEPCs == 1 )
|
||||
{ //Use the singular version of the string
|
||||
if( gMercProfiles[ MercPtrs[ gusSelectedSoldier ]->ubProfile ].bSex == MALE )
|
||||
|
||||
@@ -239,7 +239,7 @@ BOOLEAN WriteAmmoStats()
|
||||
{
|
||||
FilePrintf(hFile,"\t<AMMO>\r\n");
|
||||
|
||||
UINT16 * szRemainder = AmmoCaliber[cnt]; //the remaining string to be output (for making valid XML)
|
||||
wchar_t * szRemainder = AmmoCaliber[cnt]; //the remaining string to be output (for making valid XML)
|
||||
|
||||
FilePrintf(hFile,"\t\t<AmmoCaliber>");
|
||||
while(szRemainder[0] != '\0')
|
||||
|
||||
+1
-1
@@ -97,7 +97,7 @@ typedef struct
|
||||
BOOLEAN fDisplayTextOver; // Boolean indicating to display text on face
|
||||
BOOLEAN fOldDisplayTextOver; // OLD Boolean indicating to display text on face
|
||||
BOOLEAN fCanHandleInactiveNow;
|
||||
INT16 zDisplayText[ 30 ]; // String of text that can be displayed
|
||||
wchar_t zDisplayText[ 30 ]; // String of text that can be displayed
|
||||
|
||||
UINT16 usEyesX;
|
||||
UINT16 usEyesY;
|
||||
|
||||
@@ -4313,7 +4313,7 @@ void DebugSoldierPage3( )
|
||||
|
||||
}
|
||||
|
||||
void AppendAttachmentCode( UINT16 usItem, UINT16 *str )
|
||||
void AppendAttachmentCode( UINT16 usItem, wchar_t *str )
|
||||
{
|
||||
switch( usItem )
|
||||
{
|
||||
@@ -4334,7 +4334,7 @@ void AppendAttachmentCode( UINT16 usItem, UINT16 *str )
|
||||
|
||||
void WriteQuantityAndAttachments( OBJECTTYPE *pObject, INT32 yp )
|
||||
{
|
||||
UINT16 szAttach[30];
|
||||
wchar_t szAttach[30];
|
||||
BOOLEAN fAttachments;
|
||||
//100% Qty: 2 Attach:
|
||||
//100% Qty: 2
|
||||
@@ -4360,8 +4360,8 @@ void WriteQuantityAndAttachments( OBJECTTYPE *pObject, INT32 yp )
|
||||
{ //ammo
|
||||
if( pObject->ubNumberOfObjects > 1 )
|
||||
{
|
||||
UINT16 str[50];
|
||||
UINT16 temp[5];
|
||||
wchar_t str[50];
|
||||
wchar_t temp[5];
|
||||
UINT8 i;
|
||||
swprintf( str, L"Clips: %d (%d", pObject->ubNumberOfObjects, pObject->bStatus[0] );
|
||||
for( i = 1; i < pObject->ubNumberOfObjects; i++ )
|
||||
@@ -4400,8 +4400,8 @@ void DebugSoldierPage4( )
|
||||
{
|
||||
SOLDIERTYPE *pSoldier;
|
||||
UINT32 uiMercFlags;
|
||||
UINT16 szOrders[20];
|
||||
UINT16 szAttitude[20];
|
||||
wchar_t szOrders[20];
|
||||
wchar_t szAttitude[20];
|
||||
UINT16 usSoldierIndex;
|
||||
UINT8 ubLine;
|
||||
|
||||
|
||||
@@ -161,8 +161,8 @@ typedef enum{
|
||||
|
||||
typedef struct
|
||||
{
|
||||
UINT16 zName[ NAME_LENGTH ];
|
||||
UINT16 zNickname[ NICKNAME_LENGTH ];
|
||||
wchar_t zName[ NAME_LENGTH ];
|
||||
wchar_t zNickname[ NICKNAME_LENGTH ];
|
||||
UINT32 uiAttnSound;
|
||||
UINT32 uiCurseSound;
|
||||
UINT32 uiDieSound;
|
||||
|
||||
Reference in New Issue
Block a user