Don't hardcode script4Runnable=in exercises, closes #493

master
krzys-h 2015-07-09 23:09:08 +02:00
parent 978fc8f1fb
commit b7c3a8a30b
2 changed files with 2 additions and 2 deletions

2
data

@ -1 +1 @@
Subproject commit c1da1d3ca64d8b6450023d9a6f095b5e8a80da63
Subproject commit 57478f17b86736c8a8b6e132eed529b853241462

View File

@ -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