mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
New Feature: a private military company allows hiring of advanced militia. For more info, see http://www.ja-galaxy-forum.com/ubbthreads.php/topics/335279#Post335279
Does not break savegame compatibility. Requires GameDir revision >= r2130. git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@7457 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
+11
-6
@@ -3682,18 +3682,18 @@ BOOLEAN HandleMailSpecialMessages( UINT16 usMessageId, INT32 *iResults, EmailPtr
|
||||
break;
|
||||
//Dealtar's Airport Externalization
|
||||
case BOBBYR_SHIPMENT_ARRIVED:
|
||||
wstring wstrMail;
|
||||
wstring::size_type index;
|
||||
CHAR16 szMail[MAIL_STRING_SIZE];
|
||||
|
||||
if (!pMessageRecordList)
|
||||
{
|
||||
wstring wstrMail;
|
||||
wstring::size_type index;
|
||||
CHAR16 szMail[MAIL_STRING_SIZE];
|
||||
|
||||
// WANNE.MAIL: Fix
|
||||
gusCurShipmentDestinationID = -1; // Reset
|
||||
gusCurShipmentDestinationID = pMail->iCurrentShipmentDestinationID;
|
||||
|
||||
// Loop through each line of the shipment EDT-file
|
||||
for (int i = 0; i < BOBBYR_SHIPMENT_ARRIVED_LENGTH; i++)
|
||||
for (int i = 0; i < BOBBYR_SHIPMENT_ARRIVED_LENGTH; ++i)
|
||||
{
|
||||
wstrMail.clear();
|
||||
LoadEncryptedDataFromFile("BINARYDATA\\Email.edt", szMail, MAIL_STRING_SIZE *usMessageId, MAIL_STRING_SIZE);
|
||||
@@ -3724,12 +3724,17 @@ BOOLEAN HandleMailSpecialMessages( UINT16 usMessageId, INT32 *iResults, EmailPtr
|
||||
|
||||
AddEmailRecordToList((STR16)wstrMail.c_str());
|
||||
|
||||
usMessageId++;
|
||||
++usMessageId;
|
||||
}
|
||||
}
|
||||
giPrevMessageId = giMessageId;
|
||||
break;
|
||||
|
||||
case(PMC_INTRO) :
|
||||
SetBookMark( PMC_BOOKMARK );
|
||||
fReDrawScreenFlag = TRUE;
|
||||
break;
|
||||
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user