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:
@@ -223,7 +223,7 @@ UINT16 gwGroupTypeString[ NUM_ENEMY_INTENTIONS ][ 20 ] =
|
||||
};
|
||||
|
||||
|
||||
void StringFromValue( UINT16 *str, INT32 iValue, UINT32 uiMax )
|
||||
void StringFromValue( wchar_t *str, INT32 iValue, UINT32 uiMax )
|
||||
{
|
||||
if( iValue < 0 ) //a blank string is determined by a negative value.
|
||||
str[0] = '\0';
|
||||
@@ -236,7 +236,7 @@ void StringFromValue( UINT16 *str, INT32 iValue, UINT32 uiMax )
|
||||
BOOLEAN CreateAIViewer()
|
||||
{
|
||||
VOBJECT_DESC VObjectDesc;
|
||||
UINT16 str[6];
|
||||
wchar_t str[6];
|
||||
|
||||
//Kaiden: Loading INI file to read Values...
|
||||
// Here's another one of those INI reads
|
||||
@@ -447,7 +447,7 @@ void RenderStationaryGroups()
|
||||
HVOBJECT hVObject;
|
||||
SECTORINFO *pSector;
|
||||
INT32 x, y, xp, yp;
|
||||
UINT16 str[20];
|
||||
wchar_t str[20];
|
||||
INT32 iSector = 0;
|
||||
UINT8 ubIconColor;
|
||||
UINT8 ubGroupSize = 0;
|
||||
@@ -851,7 +851,7 @@ void RenderViewer()
|
||||
}
|
||||
for( x = 1; x <= 16; x++ )
|
||||
{
|
||||
UINT16 str[3];
|
||||
wchar_t str[3];
|
||||
if( x == gsSelSectorX )
|
||||
SetFontForeground( FONT_RED );
|
||||
else if( x == gsHiSectorX )
|
||||
|
||||
@@ -7078,7 +7078,7 @@ void ContractMenuBtnCallback( MOUSE_REGION * pRegion, INT32 iReason )
|
||||
}
|
||||
else
|
||||
{
|
||||
DoMapMessageBox( MSG_BOX_BASIC_STYLE, (INT16 *)gzLateLocalizedString[ 48 ], MAP_SCREEN, MSG_BOX_FLAG_YESNO, MercDismissConfirmCallBack );
|
||||
DoMapMessageBox( MSG_BOX_BASIC_STYLE, gzLateLocalizedString[ 48 ], MAP_SCREEN, MSG_BOX_FLAG_YESNO, MercDismissConfirmCallBack );
|
||||
}
|
||||
|
||||
fOkToClose = TRUE;
|
||||
|
||||
@@ -1654,7 +1654,7 @@ void RenderAutoResolve()
|
||||
INT32 xp, yp;
|
||||
SOLDIERCELL *pCell = NULL;
|
||||
INT32 index = 0;
|
||||
UINT16 str[100];
|
||||
wchar_t str[100];
|
||||
UINT8 bTownId = 0;
|
||||
UINT8 ubGood, ubBad;
|
||||
|
||||
@@ -3293,8 +3293,8 @@ void RenderSoldierCellHealth( SOLDIERCELL *pCell )
|
||||
{
|
||||
INT32 cnt, cntStart;
|
||||
INT32 xp, yp;
|
||||
UINT16 *pStr;
|
||||
UINT16 str[20];
|
||||
wchar_t *pStr;
|
||||
wchar_t str[20];
|
||||
UINT8 *pDestBuf, *pSrcBuf;
|
||||
UINT32 uiSrcPitchBYTES, uiDestPitchBYTES;
|
||||
UINT16 usColor;
|
||||
|
||||
@@ -407,7 +407,7 @@ void InitCreatureQuest()
|
||||
default:
|
||||
#ifdef JA2BETAVERSION
|
||||
{
|
||||
UINT16 str[512];
|
||||
wchar_t str[512];
|
||||
swprintf( str, L"Creature quest never chose a lair and won't infect any mines. Infectible mines = %d, iRandom = %d. "
|
||||
L"This isn't a bug if you are not receiving income from any mines.", iNumMinesInfectible, iOrigRandom );
|
||||
DoScreenIndependantMessageBox( str, MSG_BOX_FLAG_OK, NULL );
|
||||
|
||||
@@ -82,7 +82,7 @@ INT32 iPausedPopUpBox = -1;
|
||||
UINT32 guiDay;
|
||||
UINT32 guiHour;
|
||||
UINT32 guiMin;
|
||||
UINT16 gswzWorldTimeStr[20];
|
||||
wchar_t gswzWorldTimeStr[20];
|
||||
INT32 giTimeCompressSpeeds[ NUM_TIME_COMPRESS_SPEEDS ] = { 0, 1, 5 * 60, 30 * 60, 60 * 60 };
|
||||
UINT16 usPausedActualWidth;
|
||||
UINT16 usPausedActualHeight;
|
||||
|
||||
@@ -123,7 +123,7 @@ void AdvanceToNextDay();
|
||||
void UpdateClock();
|
||||
|
||||
|
||||
extern UINT16 gswzWorldTimeStr[ 20 ]; //Day 99, 23:55
|
||||
extern wchar_t gswzWorldTimeStr[ 20 ]; //Day 99, 23:55
|
||||
|
||||
extern UINT32 guiDay;
|
||||
extern UINT32 guiHour;
|
||||
|
||||
@@ -1618,7 +1618,7 @@ void RequestTriggerExitFromMapscreen( INT8 bExitToWhere )
|
||||
if( !CanGameBeSaved() )
|
||||
{
|
||||
//Display a message saying the player cant save now
|
||||
DoMapMessageBox( MSG_BOX_BASIC_STYLE, (INT16 *)zNewTacticalMessages[ TCTL_MSG__IRON_MAN_CANT_SAVE_NOW ], MAP_SCREEN, MSG_BOX_FLAG_OK, NULL );
|
||||
DoMapMessageBox( MSG_BOX_BASIC_STYLE, zNewTacticalMessages[ TCTL_MSG__IRON_MAN_CANT_SAVE_NOW ], MAP_SCREEN, MSG_BOX_FLAG_OK, NULL );
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -463,7 +463,7 @@ void UpdateHelpTextForInvnentoryStashSlots( void )
|
||||
{
|
||||
if( pInventoryPoolList[ iCounter + iFirstSlotOnPage ].o.ubNumberOfObjects > 0 )
|
||||
{
|
||||
GetHelpTextForItem( (INT16 *)pStr , &( pInventoryPoolList[ iCounter + iFirstSlotOnPage ].o ), NULL );
|
||||
GetHelpTextForItem( pStr , &( pInventoryPoolList[ iCounter + iFirstSlotOnPage ].o ), NULL );
|
||||
SetRegionFastHelpText( &(MapInventoryPoolSlots[ iCounter ] ), pStr );
|
||||
|
||||
/*
|
||||
@@ -836,7 +836,7 @@ void MapInvenPoolSlots(MOUSE_REGION * pRegion, INT32 iReason )
|
||||
if ( pInventoryPoolList[ ( iCurrentInventoryPoolPage * MAP_INVENTORY_POOL_SLOT_COUNT ) + iCounter ].o.usItem != NOTHING )
|
||||
{
|
||||
// not reachable
|
||||
DoMapMessageBox( MSG_BOX_BASIC_STYLE, (INT16 *)gzLateLocalizedString[38], MAP_SCREEN, MSG_BOX_FLAG_OK, NULL );
|
||||
DoMapMessageBox( MSG_BOX_BASIC_STYLE, gzLateLocalizedString[38], MAP_SCREEN, MSG_BOX_FLAG_OK, NULL );
|
||||
return;
|
||||
}
|
||||
}
|
||||
@@ -847,7 +847,7 @@ void MapInvenPoolSlots(MOUSE_REGION * pRegion, INT32 iReason )
|
||||
// valid character?
|
||||
if( gCharactersList[ bSelectedInfoChar ].fValid == FALSE )
|
||||
{
|
||||
DoMapMessageBox( MSG_BOX_BASIC_STYLE, (INT16 *)pMapInventoryErrorString[ 1 ], MAP_SCREEN, MSG_BOX_FLAG_OK, NULL );
|
||||
DoMapMessageBox( MSG_BOX_BASIC_STYLE, pMapInventoryErrorString[ 1 ], MAP_SCREEN, MSG_BOX_FLAG_OK, NULL );
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -869,7 +869,7 @@ void MapInvenPoolSlots(MOUSE_REGION * pRegion, INT32 iReason )
|
||||
{
|
||||
swprintf( sString, pMapInventoryErrorString[ 5 ], Menptr[ gCharactersList[ bSelectedInfoChar ].usSolID ].name );
|
||||
}
|
||||
DoMapMessageBox( MSG_BOX_BASIC_STYLE, (INT16 *)sString, MAP_SCREEN, MSG_BOX_FLAG_OK, NULL );
|
||||
DoMapMessageBox( MSG_BOX_BASIC_STYLE, sString, MAP_SCREEN, MSG_BOX_FLAG_OK, NULL );
|
||||
return;
|
||||
}
|
||||
}
|
||||
@@ -888,7 +888,7 @@ void MapInvenPoolSlots(MOUSE_REGION * pRegion, INT32 iReason )
|
||||
// if( ( ( gTacticalStatus.fEnemyInSector ) ||( ( sSelMapX == gWorldSectorX ) && ( sSelMapY == gWorldSectorY ) && ( iCurrentMapSectorZ == gbWorldSectorZ ) && ( gTacticalStatus.uiFlags & INCOMBAT ) ) ) )
|
||||
if( !CanPlayerUseSectorInventory( &Menptr[ gCharactersList[ bSelectedInfoChar ].usSolID ] ) )
|
||||
{
|
||||
DoMapMessageBox( MSG_BOX_BASIC_STYLE, (INT16 *)pMapInventoryErrorString[ 3 ], MAP_SCREEN, MSG_BOX_FLAG_OK, NULL );
|
||||
DoMapMessageBox( MSG_BOX_BASIC_STYLE, pMapInventoryErrorString[ 3 ], MAP_SCREEN, MSG_BOX_FLAG_OK, NULL );
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -921,7 +921,7 @@ void MapInvenPoolSlots(MOUSE_REGION * pRegion, INT32 iReason )
|
||||
// if( ( gTacticalStatus.fEnemyInSector ) ||( ( sSelMapX == gWorldSectorX ) && ( sSelMapY == gWorldSectorY ) && ( iCurrentMapSectorZ == gbWorldSectorZ ) && ( gTacticalStatus.uiFlags & INCOMBAT ) ) )
|
||||
if( !CanPlayerUseSectorInventory( &Menptr[ gCharactersList[ bSelectedInfoChar ].usSolID ] ) )
|
||||
{
|
||||
DoMapMessageBox( MSG_BOX_BASIC_STYLE, (INT16 *)pMapInventoryErrorString[ 4 ], MAP_SCREEN, MSG_BOX_FLAG_OK, NULL );
|
||||
DoMapMessageBox( MSG_BOX_BASIC_STYLE, pMapInventoryErrorString[ 4 ], MAP_SCREEN, MSG_BOX_FLAG_OK, NULL );
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -1149,14 +1149,14 @@ void ActivateSoldierPopup( SOLDIERTYPE *pSoldier, UINT8 ubPopupType, INT16 xp, I
|
||||
|
||||
|
||||
|
||||
INT32 DoMapMessageBoxWithRect( UINT8 ubStyle, INT16 *zString, UINT32 uiExitScreen, UINT16 usFlags, MSGBOX_CALLBACK ReturnCallback, SGPRect *pCenteringRect )
|
||||
INT32 DoMapMessageBoxWithRect( UINT8 ubStyle, wchar_t *zString, UINT32 uiExitScreen, UINT16 usFlags, MSGBOX_CALLBACK ReturnCallback, SGPRect *pCenteringRect )
|
||||
{ // reset the highlighted line
|
||||
giHighLine = -1;
|
||||
return DoMessageBox( ubStyle, zString, uiExitScreen, ( UINT16 ) ( usFlags | MSG_BOX_FLAG_USE_CENTERING_RECT ), ReturnCallback, pCenteringRect );
|
||||
}
|
||||
|
||||
|
||||
INT32 DoMapMessageBox( UINT8 ubStyle, INT16 * zString, UINT32 uiExitScreen, UINT16 usFlags, MSGBOX_CALLBACK ReturnCallback )
|
||||
INT32 DoMapMessageBox( UINT8 ubStyle, wchar_t * zString, UINT32 uiExitScreen, UINT16 usFlags, MSGBOX_CALLBACK ReturnCallback )
|
||||
{
|
||||
// WANNE 2
|
||||
SGPRect CenteringRect= {0, 0, SCREEN_WIDTH, INV_INTERFACE_START_Y };
|
||||
@@ -6142,11 +6142,11 @@ void ReportMapScreenMovementError( INT8 bErrorNumber )
|
||||
if ( bErrorNumber == -99 )
|
||||
{
|
||||
// - 99 is a special message # indicating a customized message
|
||||
DoMapMessageBox( MSG_BOX_BASIC_STYLE, (INT16 *)gsCustomErrorString, MAP_SCREEN, MSG_BOX_FLAG_OK, MapScreenDefaultOkBoxCallback );
|
||||
DoMapMessageBox( MSG_BOX_BASIC_STYLE, gsCustomErrorString, MAP_SCREEN, MSG_BOX_FLAG_OK, MapScreenDefaultOkBoxCallback );
|
||||
}
|
||||
else
|
||||
{
|
||||
DoMapMessageBox( MSG_BOX_BASIC_STYLE, (INT16 *)pMapErrorString[ bErrorNumber ], MAP_SCREEN, MSG_BOX_FLAG_OK, MapScreenDefaultOkBoxCallback );
|
||||
DoMapMessageBox( MSG_BOX_BASIC_STYLE, pMapErrorString[ bErrorNumber ], MAP_SCREEN, MSG_BOX_FLAG_OK, MapScreenDefaultOkBoxCallback );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -391,7 +391,7 @@ void EnableTeamInfoPanels( void );
|
||||
void ActivateSoldierPopup( SOLDIERTYPE *pSoldier, UINT8 ubPopupType, INT16 xp, INT16 yp );
|
||||
|
||||
// do mapscreen message box
|
||||
INT32 DoMapMessageBox( UINT8 ubStyle, INT16 * zString, UINT32 uiExitScreen, UINT16 usFlags, MSGBOX_CALLBACK ReturnCallback );
|
||||
INT32 DoMapMessageBox( UINT8 ubStyle, wchar_t * zString, UINT32 uiExitScreen, UINT16 usFlags, MSGBOX_CALLBACK ReturnCallback );
|
||||
|
||||
// hop up one leve,l int he map screen level interface
|
||||
void GoUpOneLevelInMap( void );
|
||||
|
||||
@@ -350,7 +350,7 @@ BOOLEAN BeginMeanwhile( UINT8 ubMeanwhileID )
|
||||
|
||||
void BringupMeanwhileBox( )
|
||||
{
|
||||
INT16 zStr[256];
|
||||
wchar_t zStr[256];
|
||||
|
||||
#ifdef JA2TESTVERSION
|
||||
swprintf( (wchar_t *)zStr, (wchar_t *)L"Meanwhile..... ( %S : Remember to make sure towns are controlled if required by script )", gzMeanwhileStr[ gCurrentMeanwhileDef.ubMeanwhileID ] );
|
||||
|
||||
@@ -1138,11 +1138,11 @@ void NotifyPlayerOfMercDepartureAndPromptEquipmentPlacement( SOLDIERTYPE *pSoldi
|
||||
if( fInSector == FALSE )
|
||||
{
|
||||
// set up for mapscreen
|
||||
DoMapMessageBox( MSG_BOX_BASIC_STYLE, (INT16 *)sString, MAP_SCREEN, ( UINT16 )( ( fAddRehireButton ? MSG_BOX_FLAG_GENERICCONTRACT : MSG_BOX_FLAG_GENERIC ) ), MercDepartEquipmentBoxCallBack );
|
||||
DoMapMessageBox( MSG_BOX_BASIC_STYLE, sString, MAP_SCREEN, ( UINT16 )( ( fAddRehireButton ? MSG_BOX_FLAG_GENERICCONTRACT : MSG_BOX_FLAG_GENERIC ) ), MercDepartEquipmentBoxCallBack );
|
||||
}
|
||||
else
|
||||
{
|
||||
DoMapMessageBox( MSG_BOX_BASIC_STYLE, (INT16 *)sString, MAP_SCREEN, ( UINT16 )( ( fAddRehireButton ? MSG_BOX_FLAG_OKCONTRACT : MSG_BOX_FLAG_OK ) ), MercDepartEquipmentBoxCallBack );
|
||||
DoMapMessageBox( MSG_BOX_BASIC_STYLE, sString, MAP_SCREEN, ( UINT16 )( ( fAddRehireButton ? MSG_BOX_FLAG_OKCONTRACT : MSG_BOX_FLAG_OK ) ), MercDepartEquipmentBoxCallBack );
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -89,7 +89,7 @@ void AutoResolveBattleCallback( GUI_BUTTON *btn, INT32 reason );
|
||||
void GoToSectorCallback( GUI_BUTTON *btn, INT32 reason );
|
||||
void RetreatMercsCallback( GUI_BUTTON *btn, INT32 reason );
|
||||
|
||||
void GetSoldierConditionInfo( SOLDIERTYPE *pSoldier, UINT16 *szCondition, UINT8 *pubHPPercent, UINT8 *pubBPPercent );
|
||||
void GetSoldierConditionInfo( SOLDIERTYPE *pSoldier, wchar_t *szCondition, UINT8 *pubHPPercent, UINT8 *pubBPPercent );
|
||||
|
||||
void CheckForRobotAndIfItsControlled( void );
|
||||
|
||||
@@ -213,7 +213,7 @@ void ValidateAndCorrectInBattleCounters( GROUP *pLocGroup )
|
||||
|
||||
if( ubInvalidGroups || pSector->ubAdminsInBattle || pSector->ubTroopsInBattle || pSector->ubElitesInBattle || pSector->ubCreaturesInBattle )
|
||||
{
|
||||
UINT16 str[ 512 ];
|
||||
wchar_t str[ 512 ];
|
||||
swprintf( str, L"Strategic info warning: Sector 'in battle' counters are not clear when they should be. "
|
||||
L"If you can provide information on how a previous battle was resolved here or nearby patrol "
|
||||
L"(auto resolve, tactical battle, cheat keys, or retreat),"
|
||||
@@ -904,7 +904,7 @@ void KillPreBattleInterface()
|
||||
|
||||
void RenderPBHeader( INT32 *piX, INT32 *piWidth)
|
||||
{
|
||||
UINT16 str[100];
|
||||
wchar_t str[100];
|
||||
INT32 x, width;
|
||||
SetFont( FONT10ARIALBOLD );
|
||||
if( gfBlinkHeader )
|
||||
@@ -967,8 +967,8 @@ void RenderPreBattleInterface()
|
||||
GROUP *pGroup;
|
||||
HVOBJECT hVObject;
|
||||
INT32 i, x, y, line, width;
|
||||
UINT16 str[100];
|
||||
UINT16 pSectorName[ 128 ];
|
||||
wchar_t str[100];
|
||||
wchar_t pSectorName[ 128 ];
|
||||
UINT8 ubHPPercent, ubBPPercent;
|
||||
BOOLEAN fMouseInRetreatButtonArea;
|
||||
UINT8 ubJunk;
|
||||
@@ -1417,7 +1417,7 @@ enum
|
||||
COND_DEAD
|
||||
};
|
||||
|
||||
void GetSoldierConditionInfo( SOLDIERTYPE *pSoldier, UINT16 *szCondition, UINT8 *pubHPPercent, UINT8 *pubBPPercent )
|
||||
void GetSoldierConditionInfo( SOLDIERTYPE *pSoldier, wchar_t *szCondition, UINT8 *pubHPPercent, UINT8 *pubBPPercent )
|
||||
{
|
||||
Assert( pSoldier );
|
||||
*pubHPPercent = (UINT8)(pSoldier->bLife * 100 / pSoldier->bLifeMax);
|
||||
|
||||
@@ -81,7 +81,7 @@ void ValidateEnemiesHaveWeapons()
|
||||
// do message box and return
|
||||
if( iNumInvalid )
|
||||
{
|
||||
UINT16 str[ 100 ];
|
||||
wchar_t str[ 100 ];
|
||||
swprintf( str, L"%d enemies have been added without any weapons! KM:0. Please note sector.", iNumInvalid );
|
||||
iErrorDialog = DoMessageBox( MSG_BOX_BASIC_STYLE, str, GAME_SCREEN, MSG_BOX_FLAG_OK, NULL, &CenteringRect );
|
||||
}
|
||||
@@ -713,7 +713,7 @@ void ProcessQueenCmdImplicationsOfDeath( SOLDIERTYPE *pSoldier )
|
||||
{
|
||||
INT32 iNumEnemiesInSector;
|
||||
SECTORINFO *pSector;
|
||||
// UINT16 str[128];
|
||||
// wchar_t str[128];
|
||||
INT32 iMaxEnemyGroupSize = gGameExternalOptions.iMaxEnemyGroupSize;
|
||||
DebugMsg (TOPIC_JA2,DBG_LEVEL_3,"QueenCommand");
|
||||
|
||||
@@ -766,7 +766,7 @@ DebugMsg (TOPIC_JA2,DBG_LEVEL_3,"QueenCommand");
|
||||
if( !pGroup )
|
||||
{
|
||||
#ifdef JA2BETAVERSION
|
||||
UINT16 str[256];
|
||||
wchar_t str[256];
|
||||
swprintf( str, L"Enemy soldier killed with ubGroupID of %d, and the group doesn't exist!", pSoldier->ubGroupID );
|
||||
DoScreenIndependantMessageBox( str, MSG_BOX_FLAG_OK, NULL );
|
||||
#endif
|
||||
@@ -775,7 +775,7 @@ DebugMsg (TOPIC_JA2,DBG_LEVEL_3,"QueenCommand");
|
||||
if( pGroup->fPlayer )
|
||||
{
|
||||
#ifdef JA2BETAVERSION
|
||||
UINT16 str[256];
|
||||
wchar_t str[256];
|
||||
swprintf( str, L"Attempting to process player group thinking it's an enemy group in ProcessQueenCmdImplicationsOfDeath()", pSoldier->ubGroupID );
|
||||
DoScreenIndependantMessageBox( str, MSG_BOX_FLAG_OK, NULL );
|
||||
#endif
|
||||
|
||||
@@ -626,7 +626,7 @@ void ChangeFactState( INT32 iNumber );
|
||||
void DisplayCurrentGridNo();
|
||||
void EnableQDSButtons();
|
||||
|
||||
BOOLEAN DoQDSMessageBox( UINT8 ubStyle, INT16 * zString, UINT32 uiExitScreen, UINT8 ubFlags, MSGBOX_CALLBACK ReturnCallback );
|
||||
BOOLEAN DoQDSMessageBox( UINT8 ubStyle, wchar_t * zString, UINT32 uiExitScreen, UINT8 ubFlags, MSGBOX_CALLBACK ReturnCallback );
|
||||
void IncrementActiveDropDownBox( INT16 sIncrementValue );
|
||||
INT16 IsMercInTheSector( UINT16 usMercID );
|
||||
void RefreshAllNPCInventory();
|
||||
@@ -1038,7 +1038,7 @@ BOOLEAN EnterQuestDebugSystem()
|
||||
|
||||
if( giHaveSelectedNPC != -1 )
|
||||
{
|
||||
UINT16 zItemDesc[ SIZE_ITEM_INFO ];
|
||||
wchar_t zItemDesc[ SIZE_ITEM_INFO ];
|
||||
|
||||
if( gfUseLocalNPCs )
|
||||
swprintf( zItemDesc, L"%d - %s", gubCurrentNpcInSector[ giHaveSelectedNPC ], gMercProfiles[ gubCurrentNpcInSector[ giHaveSelectedNPC ] ].zNickname );
|
||||
@@ -1053,8 +1053,8 @@ BOOLEAN EnterQuestDebugSystem()
|
||||
|
||||
if( giHaveSelectedItem != -1 )
|
||||
{
|
||||
UINT16 zItemName[ SIZE_ITEM_NAME ];
|
||||
UINT16 zItemDesc[ SIZE_ITEM_INFO ];
|
||||
wchar_t zItemName[ SIZE_ITEM_NAME ];
|
||||
wchar_t zItemDesc[ SIZE_ITEM_INFO ];
|
||||
|
||||
wcscpy( zItemName, ShortItemNames[ giHaveSelectedItem ] );
|
||||
|
||||
@@ -1388,7 +1388,7 @@ void GetUserInput()
|
||||
// toggle whether dropped items are damaged or not
|
||||
gfDropDamagedItems ^= 1;
|
||||
swprintf( zTemp, L"Items dropped will be in %s condition", gfDropDamagedItems ? L"DAMAGED" : L"PERFECT" );
|
||||
DoQDSMessageBox( MSG_BOX_BASIC_STYLE, (INT16 *)zTemp, QUEST_DEBUG_SCREEN, MSG_BOX_FLAG_OK, NULL );
|
||||
DoQDSMessageBox( MSG_BOX_BASIC_STYLE, zTemp, QUEST_DEBUG_SCREEN, MSG_BOX_FLAG_OK, NULL );
|
||||
}
|
||||
break;
|
||||
}
|
||||
@@ -2045,8 +2045,8 @@ void DisplaySelectedItem()
|
||||
UINT16 i;
|
||||
UINT16 usPosX, usPosY;
|
||||
UINT16 usFontHeight = GetFontHeight( QUEST_DBS_FONT_LISTBOX_TEXT ) + 2;
|
||||
UINT16 zItemName[ SIZE_ITEM_NAME ];
|
||||
// UINT16 zItemDesc[ SIZE_ITEM_INFO ];
|
||||
wchar_t zItemName[ SIZE_ITEM_NAME ];
|
||||
// wchar_t zItemDesc[ SIZE_ITEM_INFO ];
|
||||
|
||||
wchar_t zButtonName[ 256 ];
|
||||
|
||||
@@ -2661,7 +2661,7 @@ void BtnQuestDebugNPCRefreshButtonButtonCallback(GUI_BUTTON *btn,INT32 reason)
|
||||
swprintf( zTemp, L"%s %s", QuestDebugText[ QUEST_DBS_REFRESH_FAILED ], gMercProfiles[ ubMercID ].zNickname );
|
||||
}
|
||||
|
||||
DoQDSMessageBox( MSG_BOX_BASIC_STYLE, (INT16 *)zTemp, QUEST_DEBUG_SCREEN, MSG_BOX_FLAG_OK, NULL );
|
||||
DoQDSMessageBox( MSG_BOX_BASIC_STYLE, zTemp, QUEST_DEBUG_SCREEN, MSG_BOX_FLAG_OK, NULL );
|
||||
|
||||
btn->uiFlags &= (~BUTTON_CLICKED_ON );
|
||||
InvalidateRegion(btn->Area.RegionTopLeftX, btn->Area.RegionTopLeftY, btn->Area.RegionBottomRightX, btn->Area.RegionBottomRightY);
|
||||
@@ -3120,8 +3120,8 @@ void CreateDestroyDisplayNPCInventoryPopup( UINT8 ubAction )
|
||||
|
||||
case QD_DROP_DOWN_DISPLAY:
|
||||
{
|
||||
UINT16 zItemName[ SIZE_ITEM_NAME ];
|
||||
// UINT16 zItemDesc[ SIZE_ITEM_INFO ];
|
||||
wchar_t zItemName[ SIZE_ITEM_NAME ];
|
||||
// wchar_t zItemDesc[ SIZE_ITEM_INFO ];
|
||||
UINT16 usFontHeight = GetFontHeight( QUEST_DBS_FONT_LISTBOX_TEXT ) + 2;
|
||||
|
||||
|
||||
@@ -3565,7 +3565,7 @@ void EnableQDSButtons()
|
||||
*/
|
||||
}
|
||||
|
||||
BOOLEAN DoQDSMessageBox( UINT8 ubStyle, INT16 * zString, UINT32 uiExitScreen, UINT8 ubFlags, MSGBOX_CALLBACK ReturnCallback )
|
||||
BOOLEAN DoQDSMessageBox( UINT8 ubStyle, wchar_t * zString, UINT32 uiExitScreen, UINT8 ubFlags, MSGBOX_CALLBACK ReturnCallback )
|
||||
{
|
||||
SGPRect pCenteringRect= {0, 0, 639, 479 };
|
||||
|
||||
@@ -3706,7 +3706,7 @@ void StartMercTalkingFromQuoteNum( INT32 iQuoteToStartTalkingFrom )
|
||||
if( iQuoteToStartTalkingFrom < 0 || iQuoteToStartTalkingFrom > uiMaxNumberOfQuotes )
|
||||
{
|
||||
swprintf( zTemp, L"Please enter a value between 0 and %d", uiMaxNumberOfQuotes );
|
||||
DoQDSMessageBox( MSG_BOX_BASIC_STYLE, (INT16 *)zTemp, QUEST_DEBUG_SCREEN, MSG_BOX_FLAG_OK, NULL );
|
||||
DoQDSMessageBox( MSG_BOX_BASIC_STYLE, zTemp, QUEST_DEBUG_SCREEN, MSG_BOX_FLAG_OK, NULL );
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -707,7 +707,7 @@ void ValidatePendingGroups()
|
||||
}
|
||||
if( iErrorsForInvalidPendingGroup )
|
||||
{
|
||||
UINT16 str[256];
|
||||
wchar_t str[256];
|
||||
swprintf( str, L"Strategic AI: Internal error -- %d pending groups were discovered to be invalid. Please report error and send save."
|
||||
L"You can continue playing, as this has been auto-corrected. No need to send any debug files.", iErrorsForInvalidPendingGroup );
|
||||
SAIReportError( str );
|
||||
@@ -742,7 +742,7 @@ void ValidateWeights( INT32 iID )
|
||||
|
||||
if( giReinforcementPoints != iSumReinforcementPoints || giRequestPoints != iSumRequestPoints )
|
||||
{
|
||||
UINT16 str[256];
|
||||
wchar_t str[256];
|
||||
swprintf( str, L"Strategic AI: Internal error #%02d (total request/reinforcement points). Please report error including error#. "
|
||||
L"You can continue playing, as the points have been auto-corrected. No need to send any save/debug files.", iID );
|
||||
//Correct the misalignment.
|
||||
@@ -770,7 +770,7 @@ DebugMsg (TOPIC_JA2,DBG_LEVEL_3,"Strategic2");
|
||||
{
|
||||
#ifdef JA2BETAVERSION
|
||||
{
|
||||
UINT16 str[256];
|
||||
wchar_t str[256];
|
||||
swprintf( str, L"Strategic AI: Internal error (invalid enemy group #%d location at %c%d, destination %c%d). Please send PRIOR save file and Strategic Decisions.txt.",
|
||||
pGroup->ubGroupID, pGroup->ubSectorY + 'A' - 1, pGroup->ubSectorX, pGroup->ubNextY + 'A' - 1, pGroup->ubNextX );
|
||||
SAIReportError( str );
|
||||
@@ -811,7 +811,7 @@ void ValidateLargeGroup( GROUP *pGroup )
|
||||
#ifdef JA2BETAVERSION
|
||||
if( pGroup->ubGroupSize > 25 )
|
||||
{
|
||||
UINT16 str[ 512 ];
|
||||
wchar_t str[ 512 ];
|
||||
swprintf( str, L"Strategic AI warning: Enemy group containing %d soldiers "
|
||||
L"(%d admins, %d troops, %d elites) in sector %c%d. This message is a temporary test message "
|
||||
L"to evaluate a potential problems with very large enemy groups.",
|
||||
@@ -868,7 +868,7 @@ void ValidatePlayersAreInOneGroupOnly()
|
||||
GROUP *pGroup, *pOtherGroup;
|
||||
PLAYERGROUP *pPlayer;
|
||||
SOLDIERTYPE *pSoldier;
|
||||
UINT16 str[ 1024 ];
|
||||
wchar_t str[ 1024 ];
|
||||
UINT8 ubGroupID;
|
||||
//Go through each merc slot in the player team
|
||||
iNumErrors = 0;
|
||||
@@ -2090,7 +2090,7 @@ DebugMsg (TOPIC_JA2,DBG_LEVEL_3,"Strategic5");
|
||||
{
|
||||
UINT8 ubCut;
|
||||
#ifdef JA2BETAVERSION
|
||||
UINT16 str[512];
|
||||
wchar_t str[512];
|
||||
swprintf( str, L"Patrol group #%d in %c%d received too many reinforcements from group #%d that was created in %c%d. Size truncated from %d to %d."
|
||||
L"Please send Strategic Decisions.txt and PRIOR save.",
|
||||
pPatrolGroup->ubGroupID, pPatrolGroup->ubSectorY + 'A' - 1, pPatrolGroup->ubSectorX,
|
||||
|
||||
@@ -698,7 +698,7 @@ GROUP* CreateNewEnemyGroupDepartingFromSector( UINT32 uiSector, UINT8 ubNumAdmin
|
||||
|
||||
#ifdef JA2BETAVERSION
|
||||
{
|
||||
UINT16 str[ 512 ];
|
||||
wchar_t str[ 512 ];
|
||||
if( PlayerMercsInSector( pNew->ubSectorX, pNew->ubSectorY, 0 ) || CountAllMilitiaInSector( pNew->ubSectorX, pNew->ubSectorY ) )
|
||||
{
|
||||
swprintf( str, L"Attempting to send enemy troops from player occupied location. "
|
||||
@@ -1150,7 +1150,7 @@ BOOLEAN CheckConditionsForBattle( GROUP *pGroup )
|
||||
|
||||
if( GetTownIdForSector( pGroup->ubSectorX, pGroup->ubSectorY ) == BLANK_SECTOR)
|
||||
{
|
||||
// UINT16 str[ 256 ];
|
||||
// wchar_t str[ 256 ];
|
||||
// UINT16 uiSectorC = L'A' + pGroup->ubSectorY - 1;
|
||||
// swprintf( str, gpStrategicString[ STR_DIALOG_ENEMIES_ATTACK_MILITIA ], uiSectorC, pGroup->ubSectorX );
|
||||
// DoScreenIndependantMessageBox( str, MSG_BOX_FLAG_OK, TriggerPrebattleInterface );
|
||||
@@ -1159,8 +1159,8 @@ BOOLEAN CheckConditionsForBattle( GROUP *pGroup )
|
||||
}
|
||||
else
|
||||
{
|
||||
UINT16 str[ 256 ];
|
||||
UINT16 pSectorStr[ 128 ];
|
||||
wchar_t str[ 256 ];
|
||||
wchar_t pSectorStr[ 128 ];
|
||||
GetSectorIDString( pGroup->ubSectorX, pGroup->ubSectorY, pGroup->ubSectorZ , pSectorStr, TRUE );
|
||||
swprintf( str, gpStrategicString[ STR_DIALOG_ENEMIES_ATTACK_UNCONCIOUSMERCS ], pSectorStr );
|
||||
DoScreenIndependantMessageBox( str, MSG_BOX_FLAG_OK, TriggerPrebattleInterface );
|
||||
@@ -2228,8 +2228,8 @@ BOOLEAN PossibleToCoordinateSimultaneousGroupArrivals( GROUP *pFirstGroup )
|
||||
|
||||
if( ubNumNearbyGroups )
|
||||
{ //postpone the battle until the user answers the dialog.
|
||||
UINT16 str[255];
|
||||
UINT16 *pStr, *pEnemyType;
|
||||
wchar_t str[255];
|
||||
wchar_t *pStr, *pEnemyType;
|
||||
InterruptTime();
|
||||
PauseGame();
|
||||
LockPauseState( 13 );
|
||||
@@ -2264,7 +2264,7 @@ BOOLEAN PossibleToCoordinateSimultaneousGroupArrivals( GROUP *pFirstGroup )
|
||||
//Kris August 03, 1999 Bug fix: Changed 1st line to 2nd line to fix game breaking if this dialog came up while in tactical.
|
||||
// It would kick you to mapscreen, where things would break...
|
||||
//DoMapMessageBox( MSG_BOX_BASIC_STYLE, str, MAP_SCREEN, MSG_BOX_FLAG_YESNO, PlanSimultaneousGroupArrivalCallback );
|
||||
DoMapMessageBox( MSG_BOX_BASIC_STYLE, (INT16 *)str, guiCurrentScreen, MSG_BOX_FLAG_YESNO, PlanSimultaneousGroupArrivalCallback );
|
||||
DoMapMessageBox( MSG_BOX_BASIC_STYLE, str, guiCurrentScreen, MSG_BOX_FLAG_YESNO, PlanSimultaneousGroupArrivalCallback );
|
||||
|
||||
gfWaitingForInput = TRUE;
|
||||
return TRUE;
|
||||
@@ -4488,7 +4488,7 @@ void AddFuelToVehicle( SOLDIERTYPE *pSoldier, SOLDIERTYPE *pVehicle )
|
||||
if( !Item[pItem->usItem].gascan )
|
||||
{
|
||||
#ifdef JA2BETAVERSION
|
||||
UINT16 str[ 100 ];
|
||||
wchar_t str[ 100 ];
|
||||
swprintf( str, L"%s is supposed to have gas can in hand. ATE:0", pSoldier->name );
|
||||
DoScreenIndependantMessageBox( str, MSG_BOX_FLAG_OK, NULL );
|
||||
#endif
|
||||
@@ -4519,7 +4519,7 @@ void AddFuelToVehicle( SOLDIERTYPE *pSoldier, SOLDIERTYPE *pVehicle )
|
||||
|
||||
void ReportVehicleOutOfGas( INT32 iVehicleID, UINT8 ubSectorX, UINT8 ubSectorY )
|
||||
{
|
||||
UINT16 str[255];
|
||||
wchar_t str[255];
|
||||
//Report that the vehicle that just arrived is out of gas.
|
||||
swprintf( str, gzLateLocalizedString[ 5 ],
|
||||
pVehicleStrings[ pVehicleList[ iVehicleID ].ubVehicleType ],
|
||||
@@ -4747,8 +4747,8 @@ BOOLEAN TestForBloodcatAmbush( GROUP *pGroup )
|
||||
|
||||
void NotifyPlayerOfBloodcatBattle( UINT8 ubSectorX, UINT8 ubSectorY )
|
||||
{
|
||||
UINT16 str[ 256 ];
|
||||
UINT16 zTempString[ 128 ];
|
||||
wchar_t str[ 256 ];
|
||||
wchar_t zTempString[ 128 ];
|
||||
if( gubEnemyEncounterCode == BLOODCAT_AMBUSH_CODE )
|
||||
{
|
||||
GetSectorIDString( ubSectorX, ubSectorY, 0, zTempString, TRUE );
|
||||
@@ -5149,7 +5149,7 @@ void ValidateGroups( GROUP *pGroup )
|
||||
if( !pGroup->fPlayer && !pGroup->ubGroupSize )
|
||||
{
|
||||
//report error
|
||||
UINT16 str[ 512 ];
|
||||
wchar_t str[ 512 ];
|
||||
if( pGroup->ubSectorIDOfLastReassignment == 255 )
|
||||
{
|
||||
swprintf( str, L"Enemy group found with 0 troops in it. This is illegal and group will be deleted."
|
||||
|
||||
@@ -1550,8 +1550,8 @@ void AdjustLoyaltyForCivsEatenByMonsters( INT16 sSectorX, INT16 sSectorY, UINT8
|
||||
{
|
||||
INT8 bTownId = 0;
|
||||
UINT32 uiLoyaltyChange = 0;
|
||||
UINT16 str[256];
|
||||
UINT16 pSectorString[128];
|
||||
wchar_t str[256];
|
||||
wchar_t pSectorString[128];
|
||||
|
||||
|
||||
// get town id
|
||||
|
||||
@@ -647,17 +647,17 @@ DebugMsg (TOPIC_JA2,DBG_LEVEL_3,"Militia2");
|
||||
// if we are in mapscreen, make a pop up
|
||||
if( guiCurrentScreen == MAP_SCREEN )
|
||||
{
|
||||
DoMapMessageBox( MSG_BOX_BASIC_STYLE, (INT16 *)sString, MAP_SCREEN, MSG_BOX_FLAG_YESNO, PayMilitiaTrainingYesNoBoxCallback );
|
||||
DoMapMessageBox( MSG_BOX_BASIC_STYLE, sString, MAP_SCREEN, MSG_BOX_FLAG_YESNO, PayMilitiaTrainingYesNoBoxCallback );
|
||||
}
|
||||
else
|
||||
{
|
||||
DoMessageBox( MSG_BOX_BASIC_STYLE, (INT16 *)sString, GAME_SCREEN, MSG_BOX_FLAG_YESNO, PayMilitiaTrainingYesNoBoxCallback, &pCenteringRect );
|
||||
DoMessageBox( MSG_BOX_BASIC_STYLE, sString, GAME_SCREEN, MSG_BOX_FLAG_YESNO, PayMilitiaTrainingYesNoBoxCallback, &pCenteringRect );
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
void DoContinueMilitiaTrainingMessageBox( INT16 sSectorX, INT16 sSectorY, UINT16 *str, UINT16 usFlags, MSGBOX_CALLBACK ReturnCallback )
|
||||
void DoContinueMilitiaTrainingMessageBox( INT16 sSectorX, INT16 sSectorY, wchar_t *str, UINT16 usFlags, MSGBOX_CALLBACK ReturnCallback )
|
||||
{
|
||||
if( sSectorX <= 10 && sSectorY >= 6 && sSectorY <= 11 )
|
||||
{
|
||||
@@ -780,7 +780,7 @@ DebugMsg (TOPIC_JA2,DBG_LEVEL_3,"Militia3");
|
||||
|
||||
// ask player whether he'd like to continue training
|
||||
//DoContinueMilitiaTrainingMessageBox( sSectorX, sSectorY, sString, MSG_BOX_FLAG_YESNO, PayMilitiaTrainingYesNoBoxCallback );
|
||||
DoMapMessageBox( MSG_BOX_BASIC_STYLE, (INT16 *)sString, MAP_SCREEN, MSG_BOX_FLAG_YESNO, PayMilitiaTrainingYesNoBoxCallback );
|
||||
DoMapMessageBox( MSG_BOX_BASIC_STYLE, sString, MAP_SCREEN, MSG_BOX_FLAG_YESNO, PayMilitiaTrainingYesNoBoxCallback );
|
||||
}
|
||||
|
||||
|
||||
@@ -821,7 +821,7 @@ void PayMilitiaTrainingYesNoBoxCallback( UINT8 bExitValue )
|
||||
StopTimeCompression();
|
||||
|
||||
swprintf( sString, L"%s", pMilitiaConfirmStrings[ 2 ] );
|
||||
DoMapMessageBox( MSG_BOX_BASIC_STYLE, (INT16 *)sString, MAP_SCREEN, MSG_BOX_FLAG_OK, CantTrainMilitiaOkBoxCallback );
|
||||
DoMapMessageBox( MSG_BOX_BASIC_STYLE, sString, MAP_SCREEN, MSG_BOX_FLAG_OK, CantTrainMilitiaOkBoxCallback );
|
||||
}
|
||||
}
|
||||
else if( bExitValue == MSG_BOX_RETURN_NO )
|
||||
@@ -1456,9 +1456,9 @@ BOOLEAN MilitiaTrainingAllowedInTown( INT8 bTownId )
|
||||
return( gfMilitiaAllowedInTown[bTownId] );
|
||||
}
|
||||
|
||||
void BuildMilitiaPromotionsString( UINT16 *str )
|
||||
void BuildMilitiaPromotionsString( wchar_t *str )
|
||||
{
|
||||
UINT16 pStr[256];
|
||||
wchar_t pStr[256];
|
||||
BOOLEAN fAddSpace = FALSE;
|
||||
swprintf( str, L"" );
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@ void StrategicRemoveMilitiaFromSector(INT16 sMapX, INT16 sMapY, UINT8 ubRank, UI
|
||||
// this will check for promotions and handle them for you
|
||||
UINT8 CheckOneMilitiaForPromotion(INT16 sMapX, INT16 sMapY, UINT8 ubCurrentRank, UINT8 ubRecentKillPts);
|
||||
|
||||
void BuildMilitiaPromotionsString( UINT16 *str );
|
||||
void BuildMilitiaPromotionsString( wchar_t *str );
|
||||
|
||||
// call this if the player attacks his own militia
|
||||
void HandleMilitiaDefections(INT16 sMapX, INT16 sMapY);
|
||||
|
||||
+16
-16
@@ -3528,7 +3528,7 @@ UINT32 MapScreenHandle(void)
|
||||
RenderTeamRegionBackground( );
|
||||
|
||||
// now do the warning box
|
||||
DoMapMessageBox( MSG_BOX_BASIC_STYLE, (INT16 *)pMapErrorString[ 4 ], MAP_SCREEN, MSG_BOX_FLAG_OK, MapScreenDefaultOkBoxCallback );
|
||||
DoMapMessageBox( MSG_BOX_BASIC_STYLE, pMapErrorString[ 4 ], MAP_SCREEN, MSG_BOX_FLAG_OK, MapScreenDefaultOkBoxCallback );
|
||||
}
|
||||
|
||||
|
||||
@@ -4917,7 +4917,7 @@ UINT32 HandleMapUI( )
|
||||
else
|
||||
{
|
||||
// no strategic movement is possible from underground sectors
|
||||
DoMapMessageBox( MSG_BOX_BASIC_STYLE, (INT16 *)pMapErrorString[ 1 ], MAP_SCREEN, MSG_BOX_FLAG_OK, MapScreenDefaultOkBoxCallback );
|
||||
DoMapMessageBox( MSG_BOX_BASIC_STYLE, pMapErrorString[ 1 ], MAP_SCREEN, MSG_BOX_FLAG_OK, MapScreenDefaultOkBoxCallback );
|
||||
return( MAP_SCREEN );
|
||||
}
|
||||
}
|
||||
@@ -5732,7 +5732,7 @@ void GetMapKeyboardInput( UINT32 *puiNewEvent )
|
||||
else
|
||||
{
|
||||
//Display a message saying the player cant save now
|
||||
DoMapMessageBox( MSG_BOX_BASIC_STYLE, (INT16 *)zNewTacticalMessages[ TCTL_MSG__IRON_MAN_CANT_SAVE_NOW ], MAP_SCREEN, MSG_BOX_FLAG_OK, NULL );
|
||||
DoMapMessageBox( MSG_BOX_BASIC_STYLE, zNewTacticalMessages[ TCTL_MSG__IRON_MAN_CANT_SAVE_NOW ], MAP_SCREEN, MSG_BOX_FLAG_OK, NULL );
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -6622,7 +6622,7 @@ void PollRightButtonInMapView( UINT32 *puiNewEvent )
|
||||
|
||||
|
||||
|
||||
void PopupText( UINT16 *pFontString, ... )
|
||||
void PopupText( wchar_t *pFontString, ... )
|
||||
{
|
||||
UINT8 *pDestBuf;
|
||||
UINT32 uiDestPitchBYTES;
|
||||
@@ -9841,11 +9841,11 @@ void TrashCanBtnCallback( MOUSE_REGION *pRegion, INT32 iReason)
|
||||
// set up for mapscreen
|
||||
if( gpItemPointer -> ubMission )
|
||||
{
|
||||
DoMapMessageBox( MSG_BOX_BASIC_STYLE, (INT16 *)pTrashItemText[ 1 ], MAP_SCREEN, MSG_BOX_FLAG_YESNO, TrashItemMessageBoxCallBack );
|
||||
DoMapMessageBox( MSG_BOX_BASIC_STYLE, pTrashItemText[ 1 ], MAP_SCREEN, MSG_BOX_FLAG_YESNO, TrashItemMessageBoxCallBack );
|
||||
}
|
||||
else
|
||||
{
|
||||
DoMapMessageBox( MSG_BOX_BASIC_STYLE, (INT16 *)pTrashItemText[ 0 ], MAP_SCREEN, MSG_BOX_FLAG_YESNO, TrashItemMessageBoxCallBack );
|
||||
DoMapMessageBox( MSG_BOX_BASIC_STYLE, pTrashItemText[ 0 ], MAP_SCREEN, MSG_BOX_FLAG_YESNO, TrashItemMessageBoxCallBack );
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -10830,17 +10830,17 @@ void TellPlayerWhyHeCantCompressTime( void )
|
||||
else if( gfAtLeastOneMercWasHired == FALSE )
|
||||
{
|
||||
// no mercs hired, ever
|
||||
DoMapMessageBox( MSG_BOX_BASIC_STYLE, (INT16 *)pMapScreenJustStartedHelpText[ 0 ], MAP_SCREEN, MSG_BOX_FLAG_OK, MapScreenDefaultOkBoxCallback );
|
||||
DoMapMessageBox( MSG_BOX_BASIC_STYLE, pMapScreenJustStartedHelpText[ 0 ], MAP_SCREEN, MSG_BOX_FLAG_OK, MapScreenDefaultOkBoxCallback );
|
||||
}
|
||||
else if ( !AnyUsableRealMercenariesOnTeam() )
|
||||
{
|
||||
// no usable mercs left on team
|
||||
DoMapMessageBox( MSG_BOX_BASIC_STYLE, (INT16 *)pMapErrorString[ 39 ], MAP_SCREEN, MSG_BOX_FLAG_OK, MapScreenDefaultOkBoxCallback );
|
||||
DoMapMessageBox( MSG_BOX_BASIC_STYLE, pMapErrorString[ 39 ], MAP_SCREEN, MSG_BOX_FLAG_OK, MapScreenDefaultOkBoxCallback );
|
||||
}
|
||||
else if ( ActiveTimedBombExists() )
|
||||
{
|
||||
// can't time compress when a bomb is about to go off!
|
||||
DoMapMessageBox( MSG_BOX_BASIC_STYLE, (INT16 *)gzLateLocalizedString[ 2 ], MAP_SCREEN, MSG_BOX_FLAG_OK, MapScreenDefaultOkBoxCallback );
|
||||
DoMapMessageBox( MSG_BOX_BASIC_STYLE, gzLateLocalizedString[ 2 ], MAP_SCREEN, MSG_BOX_FLAG_OK, MapScreenDefaultOkBoxCallback );
|
||||
}
|
||||
else if ( gfContractRenewalSquenceOn )
|
||||
{
|
||||
@@ -10868,7 +10868,7 @@ void TellPlayerWhyHeCantCompressTime( void )
|
||||
}
|
||||
else if( fShowMapInventoryPool )
|
||||
{
|
||||
DoMapMessageBox( MSG_BOX_BASIC_STYLE, (INT16 *)gzLateLocalizedString[ 55 ], MAP_SCREEN, MSG_BOX_FLAG_OK, MapScreenDefaultOkBoxCallback );
|
||||
DoMapMessageBox( MSG_BOX_BASIC_STYLE, gzLateLocalizedString[ 55 ], MAP_SCREEN, MSG_BOX_FLAG_OK, MapScreenDefaultOkBoxCallback );
|
||||
}
|
||||
// ARM: THIS TEST SHOULD BE THE LAST ONE, BECAUSE IT ACTUALLY RESULTS IN SOMETHING HAPPENING NOW.
|
||||
// KM: Except if we are in a creature lair and haven't loaded the sector yet (no battle yet)
|
||||
@@ -10876,11 +10876,11 @@ void TellPlayerWhyHeCantCompressTime( void )
|
||||
{
|
||||
if( OnlyHostileCivsInSector() )
|
||||
{
|
||||
UINT16 str[ 256 ];
|
||||
UINT16 pSectorString[ 128 ];
|
||||
wchar_t str[ 256 ];
|
||||
wchar_t pSectorString[ 128 ];
|
||||
GetSectorIDString( gWorldSectorX, gWorldSectorY, gbWorldSectorZ, pSectorString, TRUE );
|
||||
swprintf( str, gzLateLocalizedString[ 27 ], pSectorString );
|
||||
DoMapMessageBox( MSG_BOX_BASIC_STYLE, (INT16 *)str, MAP_SCREEN, MSG_BOX_FLAG_OK, MapScreenDefaultOkBoxCallback );
|
||||
DoMapMessageBox( MSG_BOX_BASIC_STYLE, str, MAP_SCREEN, MSG_BOX_FLAG_OK, MapScreenDefaultOkBoxCallback );
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -10890,7 +10890,7 @@ void TellPlayerWhyHeCantCompressTime( void )
|
||||
}
|
||||
else if( PlayerGroupIsInACreatureInfestedMine() )
|
||||
{
|
||||
DoMapMessageBox( MSG_BOX_BASIC_STYLE, (INT16 *)gzLateLocalizedString[ 28 ], MAP_SCREEN, MSG_BOX_FLAG_OK, MapScreenDefaultOkBoxCallback );
|
||||
DoMapMessageBox( MSG_BOX_BASIC_STYLE, gzLateLocalizedString[ 28 ], MAP_SCREEN, MSG_BOX_FLAG_OK, MapScreenDefaultOkBoxCallback );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12181,7 +12181,7 @@ BOOLEAN RequestGiveSkyriderNewDestination( void )
|
||||
( GetNumberOfPassengersInHelicopter() == 0 ) &&
|
||||
( PlayerMercsInHelicopterSector() > 0 ) )
|
||||
{
|
||||
DoMapMessageBox( MSG_BOX_BASIC_STYLE, (INT16 *)pSkyriderText[ 6 ], MAP_SCREEN, MSG_BOX_FLAG_OK, MapScreenDefaultOkBoxCallback );
|
||||
DoMapMessageBox( MSG_BOX_BASIC_STYLE, pSkyriderText[ 6 ], MAP_SCREEN, MSG_BOX_FLAG_OK, MapScreenDefaultOkBoxCallback );
|
||||
gfSkyriderEmptyHelpGiven = TRUE;
|
||||
return( FALSE );
|
||||
}
|
||||
@@ -12602,7 +12602,7 @@ void HandlePostAutoresolveMessages()
|
||||
}
|
||||
else if( gbMilitiaPromotions )
|
||||
{
|
||||
UINT16 str[ 512 ];
|
||||
wchar_t str[ 512 ];
|
||||
BuildMilitiaPromotionsString( str );
|
||||
DoScreenIndependantMessageBox( str, MSG_BOX_FLAG_OK, MapScreenDefaultOkBoxCallback );
|
||||
}
|
||||
|
||||
@@ -1313,7 +1313,7 @@ void EndLoadScreen( )
|
||||
#ifdef JA2TESTVERSION
|
||||
//Report the time it took to load the map. This is temporary until we are satisfied with the time
|
||||
//it takes to load the map.
|
||||
UINT16 str[60];
|
||||
wchar_t str[60];
|
||||
FILE *fp;
|
||||
UINT32 uiSeconds;
|
||||
UINT32 uiHundreths;
|
||||
@@ -2677,8 +2677,8 @@ void UpdateMercInSector( SOLDIERTYPE *pSoldier, INT16 sSectorX, INT16 sSectorY,
|
||||
if( fError )
|
||||
{ //strategic insertion failed because it expected to find an entry point. This is likely
|
||||
//a missing part of the map or possible fault in strategic movement costs, traversal logic, etc.
|
||||
UINT16 szEntry[10];
|
||||
UINT16 szSector[10];
|
||||
wchar_t szEntry[10];
|
||||
wchar_t szSector[10];
|
||||
INT16 sGridNo;
|
||||
GetLoadedSectorString( szSector );
|
||||
if( gMapInformation.sNorthGridNo != -1 )
|
||||
@@ -5253,7 +5253,7 @@ INT16 PickGridNoToWalkIn( SOLDIERTYPE *pSoldier, UINT8 ubInsertionDirection, UIN
|
||||
}
|
||||
|
||||
|
||||
void GetLoadedSectorString( UINT16 *pString )
|
||||
void GetLoadedSectorString( wchar_t *pString )
|
||||
{
|
||||
if( !gfWorldLoaded )
|
||||
{
|
||||
|
||||
@@ -93,7 +93,7 @@ void GetShortSectorString( INT16 sMapX,INT16 sMapY, STR16 sString );
|
||||
//Examples: A9
|
||||
// A10_B1
|
||||
// J9_B2_A ( >= BETAVERSION ) else J9_B2 (release equivalent)
|
||||
void GetLoadedSectorString( UINT16 *pString );
|
||||
void GetLoadedSectorString( wchar_t *pString );
|
||||
|
||||
// This will get an ID string like A9- OMERTA...
|
||||
void GetSectorIDString( INT16 sSectorX, INT16 sSectorY, INT8 bSectorZ , CHAR16 * zString, BOOLEAN fDetailed );
|
||||
|
||||
Reference in New Issue
Block a user