mirror of
https://github.com/1dot13/source.git
synced 2026-07-29 13:52:17 +02:00
Convert SOLDIERTYPE::usDragPersonID to SoldierID
This commit is contained in:
@@ -11529,7 +11529,7 @@ void SOLDIERTYPE::MoveMerc( FLOAT dMovementChange, FLOAT dAngle, BOOLEAN fCheckR
|
||||
|
||||
if ( this->usDragPersonID != NOBODY )
|
||||
{
|
||||
SOLDIERTYPE* pSoldier = MercPtrs[this->usDragPersonID];
|
||||
SOLDIERTYPE* pSoldier = this->usDragPersonID;
|
||||
|
||||
if ( pSoldier )
|
||||
{
|
||||
@@ -20876,7 +20876,7 @@ void SOLDIERTYPE::CancelDrag()
|
||||
// if we are dragging a person, set them to the center of their gridno, otherwise their position might be off
|
||||
if (this->usDragPersonID != NOBODY)
|
||||
{
|
||||
SOLDIERTYPE* pSoldier = MercPtrs[this->usDragPersonID];
|
||||
SOLDIERTYPE* pSoldier = this->usDragPersonID;
|
||||
|
||||
if ( pSoldier && !TileIsOutOfBounds(pSoldier->sGridNo) )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user