mirror of
https://github.com/1dot13/source.git
synced 2026-09-09 14:46:05 +02:00
fixed an exploit where no enemies are present in starting sector: Go to tactical before you hire any merc. Then hire a merc and compress time until merc arrives. Then you arrive in Omerta and no enemies are present. Also the chopper animation was not played.
I simply disabled the "Go to tactical button" if the user has not hired any merc. This eliminates all the "bad" side effects. git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@1981 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -1678,6 +1678,15 @@ BOOLEAN AllowedToExitFromMapscreenTo( INT8 bExitToWhere )
|
|||||||
return( FALSE );
|
return( FALSE );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// WANNE: At least one merc must be hired so we can go to tactical.
|
||||||
|
// This was an exploit. If you go to tactical in Omerta and have not hired any merc
|
||||||
|
// then go back to laptop and hire a merc. After the merc arrives the heli landing was not
|
||||||
|
// shown and the sector was free of enemies.
|
||||||
|
if (bExitToWhere == MAP_EXIT_TO_TACTICAL && gfAtLeastOneMercWasHired == FALSE)
|
||||||
|
{
|
||||||
|
return ( FALSE );
|
||||||
|
}
|
||||||
|
|
||||||
// if already going someplace else
|
// if already going someplace else
|
||||||
if ( ( gbExitingMapScreenToWhere != -1 ) && ( gbExitingMapScreenToWhere != bExitToWhere ) )
|
if ( ( gbExitingMapScreenToWhere != -1 ) && ( gbExitingMapScreenToWhere != bExitToWhere ) )
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user