mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
Copy drag info to dummy soldier (#255)
Fixes merc location shifted by one tile during loading a save when A* pathfinding is enabled
This commit is contained in:
@@ -93,6 +93,9 @@ INT32 FindGridNoFromSweetSpot( SOLDIERTYPE *pSoldier, INT32 sSweetGridNo, INT8 u
|
||||
soldier.pathing.bLevel = 0;
|
||||
soldier.bTeam = 1;
|
||||
soldier.sGridNo = sSweetGridNo;
|
||||
soldier.sDragCorpseID = pSoldier->sDragCorpseID;
|
||||
soldier.sDragGridNo = pSoldier->sDragGridNo;
|
||||
soldier.usDragPersonID = pSoldier->usDragPersonID;
|
||||
|
||||
sTop = ubRadius;
|
||||
sBottom = -ubRadius;
|
||||
|
||||
Reference in New Issue
Block a user