From 3961431e8d853e70f61eac0d5790b3019e88de53 Mon Sep 17 00:00:00 2001 From: Wanne Date: Thu, 23 Aug 2012 14:54:23 +0000 Subject: [PATCH] - Bugfix: Skyrider stuck in sector (Bugzilla #562) o I reverted the changes from revision 4724 and hopefully this fixes the "skyrider stuck in sector" bug git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@5499 3b4a5df2-a311-0410-b5c6-a8a6f20db521 --- Strategic/mapscreen.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Strategic/mapscreen.cpp b/Strategic/mapscreen.cpp index 981000bfc..720477b43 100644 --- a/Strategic/mapscreen.cpp +++ b/Strategic/mapscreen.cpp @@ -12277,8 +12277,12 @@ BOOLEAN CheckIfClickOnLastSectorInPath( INT16 sX, INT16 sY ) // helicopter route confirmed if( sX + ( sY * MAP_WORLD_X ) == GetLastSectorOfHelicoptersPath( ) ) { + // WANNE: This check was added in revision 4724, to prevent the loophole for helicopter hovering forever + // But is seems, it also causes the bug, that skyrider is stuck in the sector forever (bugzilla #562) + // So hopefully, skyrider does not stuck anymore ... + // if confirm moving to another sector - if( ( CheckForClickOverHelicopterIcon( sX, sY ) == FALSE ) ) + //if( ( CheckForClickOverHelicopterIcon( sX, sY ) == FALSE ) ) { // take off TakeOffHelicopter( );