mirror of
https://github.com/1dot13/source.git
synced 2026-08-12 14:10:23 +02:00
**********************************************************
** Big Maps Projects code (incl. Multiplayer v1.5 ** ********************************************************** - Merged Big Maps Project code from BMP+MP trunk (Revision: 3340) o Complete SVN Revision history: https://81.169.133.124/source/ja2/branches/Wanne/JA2%201.13%20MP - Before THIS merge, I made a branch of the existing 1.13 source o SVN Branch: https://81.169.133.124/source/ja2/branches/JA2_rev.3336/src - Removed old VS 6.0 and VS 2003 project and solutions files, because compilation is broken long time ago - I will add VS 2010 projects and solution file in the next few days git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@3341 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -38,7 +38,7 @@ BOOLEAN CanCharacterBeAutoBandagedByTeammate( SOLDIERTYPE *pSoldier );
|
||||
//c an this grunt help anyone else out?
|
||||
BOOLEAN CanCharacterAutoBandageTeammate( SOLDIERTYPE *pSoldier );
|
||||
|
||||
BOOLEAN FindAutobandageClimbPoint( INT16 sDesiredGridNo, BOOLEAN fClimbUp )
|
||||
BOOLEAN FindAutobandageClimbPoint( INT32 sDesiredGridNo, BOOLEAN fClimbUp )
|
||||
{
|
||||
// checks for existance of location to climb up to building, not occupied by a medic
|
||||
BUILDING * pBuilding;
|
||||
@@ -230,16 +230,16 @@ BOOLEAN CanCharacterBeAutoBandagedByTeammate( SOLDIERTYPE *pSoldier )
|
||||
INT8 FindBestPatient( SOLDIERTYPE * pSoldier, BOOLEAN * pfDoClimb )
|
||||
{
|
||||
UINT8 cnt, cnt2;
|
||||
INT16 bBestPriority = 0, sBestAdjGridNo = NOWHERE;
|
||||
INT16 sPatientGridNo = NOWHERE, sBestPatientGridNo = NOWHERE;
|
||||
INT32 bBestPriority = 0, sBestAdjGridNo = NOWHERE;
|
||||
INT32 sPatientGridNo = NOWHERE, sBestPatientGridNo = NOWHERE;
|
||||
INT16 sShortestPath = 1000, sPathCost, sOtherMedicPathCost;
|
||||
SOLDIERTYPE * pPatient;
|
||||
SOLDIERTYPE * pBestPatient = NULL;
|
||||
SOLDIERTYPE * pOtherMedic;
|
||||
INT8 bPatientPriority;
|
||||
UINT8 ubDirection;
|
||||
INT16 sAdjustedGridNo, sAdjacentGridNo, sOtherAdjacentGridNo;
|
||||
INT16 sClimbGridNo, sBestClimbGridNo = NOWHERE, sShortestClimbPath = 1000;
|
||||
INT32 sAdjustedGridNo, sAdjacentGridNo, sOtherAdjacentGridNo;
|
||||
INT32 sClimbGridNo, sBestClimbGridNo = NOWHERE, sShortestClimbPath = 1000;
|
||||
BOOLEAN fClimbingNecessary;
|
||||
|
||||
gubGlobalPathFlags = PATH_THROUGH_PEOPLE;
|
||||
@@ -394,8 +394,8 @@ INT8 FindBestPatient( SOLDIERTYPE * pSoldier, BOOLEAN * pfDoClimb )
|
||||
pSoldier->aiData.usActionData = sBestAdjGridNo;
|
||||
return( AI_ACTION_GET_CLOSER );
|
||||
}
|
||||
}
|
||||
else if (sBestClimbGridNo != NOWHERE )
|
||||
}
|
||||
else if (!TileIsOutOfBounds(sBestClimbGridNo))
|
||||
{
|
||||
*pfDoClimb = TRUE;
|
||||
pSoldier->aiData.usActionData = sBestClimbGridNo;
|
||||
|
||||
Reference in New Issue
Block a user