mirror of
https://github.com/1dot13/source.git
synced 2026-08-05 14:00:23 +02:00
*** Merged Code from Multiplayer Branch Revision 2960 ***
- Virtual File System (VFS) by birdflu. This is needed for Multiplayer and is also used for Single Player. Very neat system :-) - Multiplayer Version 1.1 + some additional features and bugfixes * INFO: If you compile a new EXE and want to test, be sure to also use the latest SVN GameDir files in your JA2 install directory * git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@2961 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
// WANNE - MP: Used for multiplayer
|
||||
#include "connect.h"
|
||||
#include "Strategic Event Handler.h"
|
||||
|
||||
using namespace std;
|
||||
|
||||
/************************************************************************************/
|
||||
@@ -85,6 +86,7 @@ OBJECTTYPE CPostalService::tempObject;
|
||||
CPostalService::CPostalService()
|
||||
{
|
||||
}
|
||||
|
||||
void CPostalService::Clear()
|
||||
{
|
||||
_Shipments.clear();
|
||||
@@ -95,6 +97,7 @@ void CPostalService::Clear()
|
||||
_DeliveryMethods.clear();
|
||||
}
|
||||
|
||||
|
||||
UINT16 CPostalService::CreateNewShipment(UINT16 usDestinationID, UINT8 ubDeliveryMethodIndex, INT16 sSenderID)
|
||||
{
|
||||
if( usDestinationID > _UsedDestinationIDList.size() ||
|
||||
@@ -212,7 +215,7 @@ BOOLEAN CPostalService::SendShipment(UINT16 usShipmentID)
|
||||
}
|
||||
|
||||
SHIPMENT(sli).ShipmentStatus = SHIPMENT_INTRANSIT;
|
||||
|
||||
|
||||
if (is_networked)
|
||||
{
|
||||
if (is_client)
|
||||
@@ -548,6 +551,7 @@ BOOLEAN CPostalService::DeliverShipmentForMultiplayer(UINT16 usShipmentID)
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
BOOLEAN CPostalService::RegisterDeliveryCallback(INT16 sSenderID, PtrToDeliveryCallbackFunc DeliveryCallbackFunc)
|
||||
{
|
||||
if(sSenderID < - 1 || !DeliveryCallbackFunc)
|
||||
|
||||
Reference in New Issue
Block a user