mirror of
https://github.com/1dot13/source.git
synced 2026-09-16 14:47:17 +02:00
- Bugfix: closed loophole for helicopter hovering forever (by Buggler)
o See Bears Pit post: http://www.ja-galaxy-forum.com/board/ubbthreads.php?ubb=showflat&Number=292033#Post292033 git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@4724 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -11960,11 +11960,15 @@ BOOLEAN CheckIfClickOnLastSectorInPath( INT16 sX, INT16 sY )
|
|||||||
// check if helicopter
|
// check if helicopter
|
||||||
if( fPlotForHelicopter == TRUE )
|
if( fPlotForHelicopter == TRUE )
|
||||||
{
|
{
|
||||||
|
// helicopter route confirmed
|
||||||
if( sX + ( sY * MAP_WORLD_X ) == GetLastSectorOfHelicoptersPath( ) )
|
if( sX + ( sY * MAP_WORLD_X ) == GetLastSectorOfHelicoptersPath( ) )
|
||||||
{
|
{
|
||||||
// helicopter route confirmed - take off
|
// if confirm moving to another sector
|
||||||
TakeOffHelicopter( );
|
if( ( CheckForClickOverHelicopterIcon( sX, sY ) == FALSE ) )
|
||||||
|
{
|
||||||
|
// take off
|
||||||
|
TakeOffHelicopter( );
|
||||||
|
}
|
||||||
// rebuild waypoints - helicopter
|
// rebuild waypoints - helicopter
|
||||||
ppMovePath = &( pVehicleList[ iHelicopterVehicleId ].pMercPath );
|
ppMovePath = &( pVehicleList[ iHelicopterVehicleId ].pMercPath );
|
||||||
RebuildWayPointsForGroupPath( *ppMovePath, pVehicleList[ iHelicopterVehicleId ].ubMovementGroup );
|
RebuildWayPointsForGroupPath( *ppMovePath, pVehicleList[ iHelicopterVehicleId ].ubMovementGroup );
|
||||||
|
|||||||
Reference in New Issue
Block a user