Fix: incorrect travel time calculation outside of pathing

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8834 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Flugente
2020-07-03 20:40:22 +00:00
parent 00313a526b
commit 000de06890
+2 -1
View File
@@ -3478,7 +3478,8 @@ INT32 GetSectorMvtTimeForGroup( UINT8 ubSector, UINT8 ubDirection, GROUP *pGroup
curr = pGroup->pPlayerList;
// Flugente: this function gets called a lot during pathing, so much that it can lead to lag. As weight remains the same while plotting a path, only do this if something has changed
if ( gSquadEncumbranceCheckNecessary )
// always perform this check if called outside of the path plot function
if ( GetSelectedDestChar() == -1 || gSquadEncumbranceCheckNecessary )
{
// reset values
iHighestEncumbrance = 0;