Skip to content

Commit 6f9ebdf

Browse files
committed
Remove obsolete stage check from touching object block
1 parent a587483 commit 6f9ebdf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/blocks/sensingblocks.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ CompilerValue *SensingBlocks::compileTouchingObject(Compiler *compiler)
5252
else if (value != "_stage_") {
5353
Target *target = engine->targetAt(engine->findTarget(value));
5454

55-
if (target && !target->isStage()) {
55+
if (target) {
5656
CompilerValue *targetPtr = compiler->addConstValue(target);
5757
return compiler->addTargetFunctionCall("sensing_touching_sprite", Compiler::StaticType::Bool, { Compiler::StaticType::Pointer }, { targetPtr });
5858
}

0 commit comments

Comments
 (0)