[colobot] 151/390: -runscene for userlevels
Didier Raboud
odyx at moszumanska.debian.org
Fri Jun 12 14:21:39 UTC 2015
This is an automated email from the git hooks/post-receive script.
odyx pushed a commit to branch upstream/latest
in repository colobot.
commit d0383ae09babc015b84997241d403b01ad40f677
Author: krzys-h <krzys_h at interia.pl>
Date: Fri Oct 31 15:32:24 2014 +0100
-runscene for userlevels
You need to know which ID is assigned to te userlevel category (by order in "User" menu)
-runscene custom101 = first userlevel from first chapter
---
src/object/robotmain.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/object/robotmain.cpp b/src/object/robotmain.cpp
index ce6b9c1..afdca9e 100644
--- a/src/object/robotmain.cpp
+++ b/src/object/robotmain.cpp
@@ -957,6 +957,7 @@ void CRobotMain::LoadSceneOnStart(const std::string& name, int rank)
{
m_exitAfterMission = true;
// TODO: fix this ugly dependency :(
+ ChangePhase(PHASE_USER); // To load userlevel list
m_dialog->SetSceneName(name.c_str());
m_dialog->SetSceneRank(rank);
ChangePhase(PHASE_LOADING);
--
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