[colobot] 211/377: Fixed commandline CBot interpreter not initializing the library properly

Didier Raboud odyx at moszumanska.debian.org
Wed Mar 30 13:34:17 UTC 2016


This is an automated email from the git hooks/post-receive script.

odyx pushed a commit to branch debian/master
in repository colobot.

commit d00720a2f21170c27c0aa9eb84094f9185ed4617
Author: krzys-h <krzys_h at interia.pl>
Date:   Sat Dec 26 19:57:12 2015 +0100

    Fixed commandline CBot interpreter not initializing the library properly
---
 test/cbot/console/main.cpp | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/test/cbot/console/main.cpp b/test/cbot/console/main.cpp
index e6b1a4e..6e6e877 100644
--- a/test/cbot/console/main.cpp
+++ b/test/cbot/console/main.cpp
@@ -38,11 +38,13 @@ int main(int argc, char* argv[])
         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
     InitializeRestext();
 
-    // Initialize the CBot engine, add standard library functions
-    CBotProgram::AddFunction("message", rMessage, cMessage);
 
     // Compile the program
     std::vector<std::string> externFunctions;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/colobot.git



More information about the Pkg-games-commits mailing list