Skip to content

Possible Bug: Pressing Dig while climbing drops item in addition to letting go, with jump and run control #119

Description

@fritzw

Description says it all. Should there be a break at the end of this line?

case COM_Dig: ObjectComLetGo(this, (Action.Dir == DIR_Left) ? +1 : -1);

I noticed this because my COM_Jump implementation copied that line and also dropped items when letting go. It seems unhelpful to have a key that does "let go" and "drop" at once, because you can collide with the dropped object, or fall into the explosion of the flint you just dropped. If you wanted to do both, just press both keys at once.

Interestingly, the DFA_Scale case in C4Object::DirectCom (line 3421) does not mention COM_Dig at all. It's only in C4Object::AutoStopDirectCom.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions