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.
Description says it all. Should there be a
breakat the end of this line?LegacyClonk/src/C4Object.cpp
Line 3599 in a08f927
I noticed this because my
COM_Jumpimplementation 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_Scalecase inC4Object::DirectCom(line 3421) does not mentionCOM_Digat all. It's only inC4Object::AutoStopDirectCom.