mirror of
https://github.com/1dot13/source.git
synced 2026-08-26 14:30:26 +02:00
- Fix: applying canteens/camo/clothes on persons still cost them APs
- Fix: planting bombs was impossible git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@5964 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
+15
-1
@@ -2740,7 +2740,21 @@ UINT8 GetActionModeCursor( SOLDIERTYPE *pSoldier )
|
||||
|
||||
// Flugente: apply misc items to other soldiers
|
||||
if ( ItemCanBeAppliedToOthers( usInHand ) )
|
||||
ubCursor = APPLYITEMCURS;
|
||||
{
|
||||
// if item is a bomb, only allow apply if hovering over a soldier (otherwise we cannot mine anymore)
|
||||
if ( Item[ usInHand ].usItemClass == IC_BOMB )
|
||||
{
|
||||
INT32 usMapPos = NOWHERE;
|
||||
if ( GetMouseMapPos( &usMapPos ) )
|
||||
{
|
||||
// is there a person here?
|
||||
if ( WhoIsThere2( usMapPos, pSoldier->pathing.bLevel ) != NOBODY )
|
||||
ubCursor = APPLYITEMCURS;
|
||||
}
|
||||
}
|
||||
else
|
||||
ubCursor = APPLYITEMCURS;
|
||||
}
|
||||
|
||||
// Now check our terrain to see if we cannot do the action now...
|
||||
if ( WaterTooDeepForAttacks( pSoldier->sGridNo) )
|
||||
|
||||
Reference in New Issue
Block a user