Don't hardcode script4Runnable=in exercises, closes #493
parent
978fc8f1fb
commit
b7c3a8a30b
2
data
2
data
|
@ -1 +1 @@
|
|||
Subproject commit c1da1d3ca64d8b6450023d9a6f095b5e8a80da63
|
||||
Subproject commit 57478f17b86736c8a8b6e132eed529b853241462
|
|
@ -3623,7 +3623,7 @@ void CRobotMain::CreateScene(bool soluce, bool fixScene, bool resetObject)
|
|||
Program* program = brain->AddProgram();
|
||||
program->filename = "../" + line->GetParam(op)->AsPath("ai");
|
||||
program->readOnly = line->GetParam(opReadOnly)->AsBool(true);
|
||||
program->runnable = line->GetParam(opRunnable)->AsBool(strcmp(base, "exercises") || i+1 != 4); // TODO: I'd rather not have it hardcoded like that
|
||||
program->runnable = line->GetParam(opRunnable)->AsBool(true);
|
||||
loadedPrograms[i] = program;
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue