mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
Fix: if an enemy group is reassigned and ordered to retreat to its sector of creation, have it travel there instead of simply removing it
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@7895 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -6511,7 +6511,7 @@ void ReassignAIGroup( GROUP **pGroup )
|
||||
|
||||
(*pGroup)->ubSectorIDOfLastReassignment = ubSectorID;
|
||||
|
||||
Ensure_RepairedGarrisonGroup( &gGarrisonGroup, &giGarrisonArraySize ); /* added NULL fix, 2007-03-03, Sgt. Kolja */
|
||||
Ensure_RepairedGarrisonGroup( &gGarrisonGroup, &giGarrisonArraySize ); /* added NULL fix, 2007-03-03, Sgt. Kolja */
|
||||
ClearPreviousAIGroupAssignment( *pGroup );
|
||||
|
||||
//First thing to do, is teleport the group to be AT the sector he is currently moving from. Otherwise, the
|
||||
@@ -6634,7 +6634,9 @@ void ReassignAIGroup( GROUP **pGroup )
|
||||
}
|
||||
}
|
||||
}
|
||||
TransferGroupToPool( pGroup );
|
||||
|
||||
// Flugente: at least have them walk back correctly instead of just having them vanish
|
||||
SendGroupToPool( pGroup );
|
||||
}
|
||||
|
||||
//When an enemy AI group is eliminated by the player, apply a grace period in which the
|
||||
|
||||
Reference in New Issue
Block a user