mirror of
https://github.com/1dot13/source.git
synced 2026-08-19 14:20:30 +02:00
- prisoners give information only on mobile patrols, not on city sectors
- if using militia equipment, items stolen by militia are dropped after combat if their class is distributed to militia by the player - Fix: do not delete world items with invalid gridno - Fix: militia drop gear on valid GridNo git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@5892 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -4585,7 +4585,9 @@ void TakeMilitiaEquipmentfromSector( INT16 sMapX, INT16 sMapY, INT8 sMapZ, SOLDI
|
||||
|
||||
if ( pWorldItem[ uiCount ].object.ubNumberOfObjects < 1 )
|
||||
{
|
||||
RemoveItemFromPool(pWorldItem[ uiCount ].sGridNo, uiCount, pWorldItem[ uiCount ].ubLevel);
|
||||
if ( pWorldItem[ uiCount ].sGridNo != NOWHERE )
|
||||
RemoveItemFromPool(pWorldItem[ uiCount ].sGridNo, uiCount, pWorldItem[ uiCount ].ubLevel);
|
||||
|
||||
pWorldItem[ uiCount ].fExists = FALSE;
|
||||
}
|
||||
}
|
||||
@@ -4615,7 +4617,9 @@ void TakeMilitiaEquipmentfromSector( INT16 sMapX, INT16 sMapY, INT8 sMapZ, SOLDI
|
||||
|
||||
if ( pWorldItem[ uiCount ].object.ubNumberOfObjects < 1 )
|
||||
{
|
||||
RemoveItemFromPool(pWorldItem[ uiCount ].sGridNo, uiCount, pWorldItem[ uiCount ].ubLevel);
|
||||
if ( pWorldItem[ uiCount ].sGridNo != NOWHERE )
|
||||
RemoveItemFromPool(pWorldItem[ uiCount ].sGridNo, uiCount, pWorldItem[ uiCount ].ubLevel);
|
||||
|
||||
pWorldItem[ uiCount ].fExists = FALSE;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user