mirror of
https://github.com/1dot13/source.git
synced 2026-08-05 14:00:23 +02:00
************************************************************
* Merged Source Code from Development Trunk: Revision 4063 * ************************************************************ - Source Code is merged from: https://81.169.133.124/source/ja2/branches/Wanne/JA2%201.13%20MP - This will be the Source for the Beta 2011 Test git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@4064 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -144,7 +144,7 @@ BOOLEAN StartInteractiveObject( INT32 sGridNo, UINT16 usStructureID, SOLDIERTYPE
|
||||
}
|
||||
|
||||
|
||||
BOOLEAN CalcInteractiveObjectAPs( INT32 sGridNo, STRUCTURE * pStructure, INT16 *psAPCost, INT16 *psBPCost )
|
||||
BOOLEAN CalcInteractiveObjectAPs( SOLDIERTYPE * pSoldier, INT32 sGridNo, STRUCTURE * pStructure, INT16 *psAPCost, INT16 *psBPCost ) // SANDRO - added argument
|
||||
{
|
||||
if (pStructure == NULL)
|
||||
{
|
||||
@@ -156,7 +156,8 @@ BOOLEAN CalcInteractiveObjectAPs( INT32 sGridNo, STRUCTURE * pStructure, INT16 *
|
||||
// If closed, we do not know what to do yet...
|
||||
//if ( pStructure->fFlags & STRUCTURE_OPEN )
|
||||
//{
|
||||
*psAPCost = APBPConstants[AP_OPEN_DOOR];
|
||||
// SANDRO - changed this
|
||||
*psAPCost = GetAPsToOpenDoor( pSoldier );
|
||||
*psBPCost = APBPConstants[AP_OPEN_DOOR];
|
||||
//}
|
||||
//else
|
||||
@@ -167,7 +168,8 @@ BOOLEAN CalcInteractiveObjectAPs( INT32 sGridNo, STRUCTURE * pStructure, INT16 *
|
||||
}
|
||||
else
|
||||
{
|
||||
*psAPCost = APBPConstants[AP_OPEN_DOOR];
|
||||
// SANDRO - changed this
|
||||
*psAPCost = GetAPsToOpenDoor( pSoldier );
|
||||
*psBPCost = APBPConstants[AP_OPEN_DOOR];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user