mirror of
https://github.com/1dot13/source.git
synced 2026-09-16 14:47:17 +02:00
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:
@@ -3478,7 +3478,8 @@ INT32 GetSectorMvtTimeForGroup( UINT8 ubSector, UINT8 ubDirection, GROUP *pGroup
|
|||||||
curr = pGroup->pPlayerList;
|
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
|
// 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
|
// reset values
|
||||||
iHighestEncumbrance = 0;
|
iHighestEncumbrance = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user