Skip to content

Commit fa534c4

Browse files
committed
Don't set OCF_LineConstruct if the object's definition only has C4D_EnergyHolder
set as LineConnect This fixes the linekit displaying an error message when attempting to connect an already started line to an object that has `LineConnect=C4D_EnergyHolder`, as it does not support any line connection types and that flag isn't set for line-related purposes.
1 parent a73b020 commit fa534c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/C4Object.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,7 @@ void C4Object::SetOCF()
610610
OCF |= OCF_FightReady;
611611
// OCF_LineConstruct
612612
if (OCF & OCF_FullCon)
613-
if (Def->LineConnect)
613+
if (Def->LineConnect & ~C4D_EnergyHolder)
614614
OCF |= OCF_LineConstruct;
615615
// OCF_Prey
616616
if (Def->Prey)

0 commit comments

Comments
 (0)