Skip to content

Commit

Permalink
Gamepad: Fix COM_Jump and COM_Dig dropping items while climbing
Browse files Browse the repository at this point in the history
  • Loading branch information
fritzw committed Mar 27, 2024
1 parent e5841f0 commit 777bc68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/C4Object.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3601,8 +3601,8 @@ void C4Object::AutoStopDirectCom(uint8_t byCom, int32_t iData) // By DirecCom
if (Action.Dir == DIR_Left) ObjectComLetGo(this, +1);
else AutoStopUpdateComDir();
break;
case COM_Jump: ObjectComLetGo(this, (Action.Dir == DIR_Left) ? +1 : -1);
case COM_Dig: ObjectComLetGo(this, (Action.Dir == DIR_Left) ? +1 : -1);
case COM_Jump:
case COM_Dig: ObjectComLetGo(this, (Action.Dir == DIR_Left) ? +1 : -1); break;
case COM_Throw: PlayerObjectCommand(Owner, C4CMD_Drop); break;
default: AutoStopUpdateComDir();
}
Expand Down

0 comments on commit 777bc68

Please sign in to comment.