mirror of
https://github.com/1dot13/source.git
synced 2026-09-16 14:47:17 +02:00
Remove wrong cast
This commit is contained in:
@@ -5822,7 +5822,7 @@ void HandleHandCursorClick( INT32 usMapPos, UINT32 *puiNewEvent )
|
|||||||
if ( gfUIFullTargetFound )
|
if ( gfUIFullTargetFound )
|
||||||
{
|
{
|
||||||
// Flugente: allow stealing if the other guy is an enemy, OR if we are on the same team
|
// Flugente: allow stealing if the other guy is an enemy, OR if we are on the same team
|
||||||
if ( (( guiUIFullTargetFlags & ENEMY_MERC ) && !( guiUIFullTargetFlags & UNCONSCIOUS_MERC )) || (AllowedToStealFromTeamMate(pSoldier->ubID, (UINT8)gusUIFullTargetID) && guiUIFullTargetFlags & OWNED_MERC) )
|
if ( (( guiUIFullTargetFlags & ENEMY_MERC ) && !( guiUIFullTargetFlags & UNCONSCIOUS_MERC )) || (AllowedToStealFromTeamMate(pSoldier->ubID, gusUIFullTargetID) && guiUIFullTargetFlags & OWNED_MERC) )
|
||||||
{
|
{
|
||||||
sActionGridNo = FindAdjacentGridEx( pSoldier, gusUIFullTargetID->sGridNo, &ubDirection, &sAdjustedGridNo, TRUE, FALSE );
|
sActionGridNo = FindAdjacentGridEx( pSoldier, gusUIFullTargetID->sGridNo, &ubDirection, &sAdjustedGridNo, TRUE, FALSE );
|
||||||
if ( sActionGridNo == -1 )
|
if ( sActionGridNo == -1 )
|
||||||
|
|||||||
Reference in New Issue
Block a user