- 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
This commit is contained in:
Wanne
2012-08-23 14:54:23 +00:00
parent 56ae482ee2
commit 3961431e8d
+5 -1
View File
@@ -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( );