From 0d820f3c4310f32c3b916594911b1a125ba45e1c Mon Sep 17 00:00:00 2001 From: SpaceViking Date: Tue, 25 Sep 2007 05:19:36 +0000 Subject: [PATCH] Fix problem where nothing can be picked up from the strategic screen. git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@1431 3b4a5df2-a311-0410-b5c6-a8a6f20db521 --- Tactical/PATHAI.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Tactical/PATHAI.cpp b/Tactical/PATHAI.cpp index 073f755ee..e9dac585a 100644 --- a/Tactical/PATHAI.cpp +++ b/Tactical/PATHAI.cpp @@ -577,10 +577,12 @@ INT32 FindBestPath(SOLDIERTYPE *s , INT16 sDestination, INT8 ubLevel, INT16 usMo iOriginationX = iOriginationY = 0; iOrigination = (INT32) s->sGridNo; - if (sDestination == NOWHERE) - { - return 0; // There is no path to nowhere, because everywhere you can go is somewhere! - } +//WDS FIX +// This code is WRONG. sDestination=NOWHERE is used to test locations for picking up of ites from the strategic screen. +// if (sDestination == NOWHERE) +// { +// return 0; // There is no path to nowhere, because everywhere you can go is somewhere! +// } if (iOrigination < 0 || iOrigination > WORLD_MAX) { #ifdef JA2BETAVERSION