mirror of
https://github.com/1dot13/source.git
synced 2026-09-09 14:46:05 +02:00
- Bugfix: CTD when enemies retreat (by Heinz)
- Updated Chinese Text files git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@2572 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -5863,3 +5863,15 @@ void CrippledVersionFailureToLoadMapCallBack( UINT8 bExitValue )
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
BOOLEAN EscapeDirectionIsValid( INT8 * pbDirection )
|
||||||
|
{
|
||||||
|
switch( *pbDirection )
|
||||||
|
{
|
||||||
|
case NORTHEAST: if( gWorldSectorX + 1 > MAXIMUM_VALID_X_COORDINATE ) *pbDirection = -1; break; // east
|
||||||
|
case SOUTHEAST: if( gWorldSectorY + 1 > MAXIMUM_VALID_Y_COORDINATE ) *pbDirection = -1; break; // south
|
||||||
|
case SOUTHWEST: if( gWorldSectorX - 1 < MINIMUM_VALID_X_COORDINATE ) *pbDirection = -1; break; // west
|
||||||
|
case NORTHWEST: if( gWorldSectorY - 1 < MINIMUM_VALID_Y_COORDINATE ) *pbDirection = -1; break; // north
|
||||||
|
default: *pbDirection = -1;
|
||||||
|
}
|
||||||
|
return( *pbDirection != -1 );
|
||||||
|
}
|
||||||
|
|||||||
@@ -170,6 +170,7 @@ void SetupProfileInsertionDataForSoldier( SOLDIERTYPE *pSoldier );
|
|||||||
|
|
||||||
BOOLEAN HandlePotentialBringUpAutoresolveToFinishBattle( int pSectorX, int pSectorY, int pSectorZ );
|
BOOLEAN HandlePotentialBringUpAutoresolveToFinishBattle( int pSectorX, int pSectorY, int pSectorZ );
|
||||||
|
|
||||||
|
BOOLEAN EscapeDirectionIsValid( INT8 * pbDirection );
|
||||||
//Used for determining the type of error message that comes up when you can't traverse to
|
//Used for determining the type of error message that comes up when you can't traverse to
|
||||||
//an adjacent sector. THESE VALUES DO NOT NEED TO BE SAVED!
|
//an adjacent sector. THESE VALUES DO NOT NEED TO BE SAVED!
|
||||||
extern BOOLEAN gfInvalidTraversal;
|
extern BOOLEAN gfInvalidTraversal;
|
||||||
|
|||||||
@@ -1334,7 +1334,7 @@ INT16 FindSpotMaxDistFromOpponents(SOLDIERTYPE *pSoldier)
|
|||||||
|
|
||||||
iSpotClosestThreatRange = 1500;
|
iSpotClosestThreatRange = 1500;
|
||||||
|
|
||||||
if ( pSoldier->bTeam == ENEMY_TEAM && GridNoOnEdgeOfMap( sGridNo, &bEscapeDirection ) )
|
if ( pSoldier->bTeam == ENEMY_TEAM && GridNoOnEdgeOfMap( sGridNo, &bEscapeDirection ) && EscapeDirectionIsValid( &bEscapeDirection ) )
|
||||||
{
|
{
|
||||||
// We can escape! This is better than anything else except a closer spot which we can
|
// We can escape! This is better than anything else except a closer spot which we can
|
||||||
// cross over from.
|
// cross over from.
|
||||||
|
|||||||
@@ -915,7 +915,7 @@ STR16 gzMercSkillText[] =
|
|||||||
L"偷窃", //"Thief",
|
L"偷窃", //"Thief",
|
||||||
L"武术", //"Martial Arts",
|
L"武术", //"Martial Arts",
|
||||||
L"刀技", //"Knifing",
|
L"刀技", //"Knifing",
|
||||||
L"神射手", //"Sniper",
|
L"狙击手", //"Sniper",
|
||||||
L"伪装", //"Camouflage", //JA25: modified
|
L"伪装", //"Camouflage", //JA25: modified
|
||||||
L"伪装(城市)", //"Camouflage (Urban)",
|
L"伪装(城市)", //"Camouflage (Urban)",
|
||||||
L"伪装(沙漠)", //"Camouflage (Desert)",
|
L"伪装(沙漠)", //"Camouflage (Desert)",
|
||||||
|
|||||||
@@ -88,7 +88,7 @@ STR16 gzIMPSkillTraitsText[]=
|
|||||||
L"潜行", //"Stealth",
|
L"潜行", //"Stealth",
|
||||||
L"双手武器", //"Ambidextrous",
|
L"双手武器", //"Ambidextrous",
|
||||||
L"刀技", //"Knifing",
|
L"刀技", //"Knifing",
|
||||||
L"神射手", //"Sniper",
|
L"狙击手", //"Sniper",
|
||||||
L"伪装", //"Camouflage",
|
L"伪装", //"Camouflage",
|
||||||
L"武术", //"Martial Arts",
|
L"武术", //"Martial Arts",
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user