Fixed commandline CBot interpreter not initializing the library properly
parent
ef91fb8e9d
commit
d00720a2f2
|
@ -38,11 +38,13 @@ int main(int argc, char* argv[])
|
||||||
code += "\n";
|
code += "\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Initialize the CBot engine, add standard library functions
|
||||||
|
CBotProgram::Init();
|
||||||
|
CBotProgram::AddFunction("message", rMessage, cMessage);
|
||||||
|
|
||||||
// Error message strings are stored on Colobot side (meh!) so let's initialize that
|
// Error message strings are stored on Colobot side (meh!) so let's initialize that
|
||||||
InitializeRestext();
|
InitializeRestext();
|
||||||
|
|
||||||
// Initialize the CBot engine, add standard library functions
|
|
||||||
CBotProgram::AddFunction("message", rMessage, cMessage);
|
|
||||||
|
|
||||||
// Compile the program
|
// Compile the program
|
||||||
std::vector<std::string> externFunctions;
|
std::vector<std::string> externFunctions;
|
||||||
|
|
Loading…
Reference in New Issue