mirror of
https://github.com/1dot13/source.git
synced 2026-07-29 13:52:17 +02:00
- Bugfix: If user changes shipping destination location in "ShippingDestinations.xml", Bobby Ray was still under construction if the "original" shipping destination was not under players control.
This occured because of hardcoded DRASSEN AIRPORT COORDINATES (BOBBYR_SHIPPING_DEST_SECTOR_X, BOBBYR_SHIPPING_DEST_SECTOR_Y, BOBBYR_SHIPPING_DEST_SECTOR_Z) git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@3102 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -27,10 +27,10 @@
|
||||
#include "Random.h"
|
||||
#endif
|
||||
|
||||
#include "postalservice.h"
|
||||
|
||||
extern BOOLEAN fMapScreenBottomDirty;
|
||||
|
||||
|
||||
extern CPostalService gPostalService;
|
||||
|
||||
void GetSectorFacilitiesFlags( INT16 sMapX, INT16 sMapY, STR16 sFacilitiesString )
|
||||
{
|
||||
@@ -144,10 +144,21 @@ BOOLEAN SetThisSectorAsPlayerControlled( INT16 sMapX, INT16 sMapY, INT8 bMapZ, B
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
// check if we ever grabbed drassen airport, if so, set fact we can go to BR's
|
||||
if( ( sMapX == BOBBYR_SHIPPING_DEST_SECTOR_X ) && ( sMapY == BOBBYR_SHIPPING_DEST_SECTOR_Y ) )
|
||||
if (LaptopSaveInfo.fBobbyRSiteCanBeAccessed == FALSE)
|
||||
{
|
||||
LaptopSaveInfo.fBobbyRSiteCanBeAccessed = TRUE;
|
||||
// Check if the sector is a shipment sector
|
||||
BOOLEAN isShipmentSector = gPostalService.IsSectorAShipmentSector((UINT8)sMapX, (UINT8)sMapY, (UINT8)bMapZ);
|
||||
|
||||
if (isShipmentSector)
|
||||
LaptopSaveInfo.fBobbyRSiteCanBeAccessed = TRUE;
|
||||
}
|
||||
|
||||
// WANNE: Get Airport sector from ShippingDestination.xml file!
|
||||
// check if we ever grabbed drassen airport, if so, set fact we can go to BR's
|
||||
//if( ( sMapX == BOBBYR_SHIPPING_DEST_SECTOR_X ) && ( sMapY == BOBBYR_SHIPPING_DEST_SECTOR_Y ) )
|
||||
if (LaptopSaveInfo.fBobbyRSiteCanBeAccessed)
|
||||
{
|
||||
//LaptopSaveInfo.fBobbyRSiteCanBeAccessed = TRUE;
|
||||
|
||||
//If the player has been to Bobbyr when it was down, and we havent already sent email, send him an email
|
||||
if( LaptopSaveInfo.ubHaveBeenToBobbyRaysAtLeastOnceWhileUnderConstruction == BOBBYR_BEEN_TO_SITE_ONCE && LaptopSaveInfo.ubHaveBeenToBobbyRaysAtLeastOnceWhileUnderConstruction != BOBBYR_ALREADY_SENT_EMAIL )
|
||||
|
||||
Reference in New Issue
Block a user