mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
Externalizations (by Buggler)
- Externalized airport sectors - Leave equipment in Drassen used airport sector instead of bobbyr shipping location, allowing possibility of separate airport and bobbyr location - Used actual sector names instead of Omerta and Drassen hardcoded text in leave equipment message prompt git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@6503 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -1749,15 +1749,15 @@ void HandleEquipmentLeftInDrassen( UINT32 uiSlotIndex )
|
||||
|
||||
while( pItem )
|
||||
{
|
||||
if( gWorldSectorX != BOBBYR_SHIPPING_DEST_SECTOR_X || gWorldSectorY != BOBBYR_SHIPPING_DEST_SECTOR_Y || gbWorldSectorZ != BOBBYR_SHIPPING_DEST_SECTOR_Z )
|
||||
if( gWorldSectorX != AIRPORT_X || gWorldSectorY != AIRPORT_Y || gbWorldSectorZ != 0 )
|
||||
{
|
||||
// given this slot value, add to sector item list
|
||||
AddItemsToUnLoadedSector( BOBBYR_SHIPPING_DEST_SECTOR_X, BOBBYR_SHIPPING_DEST_SECTOR_Y, BOBBYR_SHIPPING_DEST_SECTOR_Z,
|
||||
gModSettings.iBobbyRDropOff, 1, &( pItem->object ) , 0, WORLD_ITEM_REACHABLE, 0, 1, FALSE ); //10433
|
||||
AddItemsToUnLoadedSector( AIRPORT_X, AIRPORT_Y, 0,
|
||||
gModSettings.iAirportDropOff, 1, &( pItem->object ) , 0, WORLD_ITEM_REACHABLE, 0, 1, FALSE ); //10433
|
||||
}
|
||||
else
|
||||
{
|
||||
AddItemToPool( gModSettings.iBobbyRDropOff, &( pItem->object ), 1, 0, WORLD_ITEM_REACHABLE, 0 ); //10433
|
||||
AddItemToPool( gModSettings.iAirportDropOff, &( pItem->object ), 1, 0, WORLD_ITEM_REACHABLE, 0 ); //10433
|
||||
}
|
||||
pItem = pItem->pNext;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user