diff options
author | Wilrik de Loose <wilrik@wilrik.nl> | 2008-05-28 08:33:38 (GMT) |
---|---|---|
committer | Wilrik de Loose <wilrik@wilrik.nl> | 2008-05-28 08:33:38 (GMT) |
commit | a2642d3545821f1a35dc2dff3c0ff5b632f78397 (patch) | |
tree | 1336d471cf745f22779550f9f476d5fc9fccf979 /matchblox/engine/C_MatchBloxEngine.cpp | |
parent | 0d3724db99f586dc252f36ca89502641e58d9887 (diff) | |
download | 2iv55-a2642d3545821f1a35dc2dff3c0ff5b632f78397.zip 2iv55-a2642d3545821f1a35dc2dff3c0ff5b632f78397.tar.gz 2iv55-a2642d3545821f1a35dc2dff3c0ff5b632f78397.tar.bz2 |
Menu structuur
Diffstat (limited to 'matchblox/engine/C_MatchBloxEngine.cpp')
-rw-r--r-- | matchblox/engine/C_MatchBloxEngine.cpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/matchblox/engine/C_MatchBloxEngine.cpp b/matchblox/engine/C_MatchBloxEngine.cpp index 9d385e2..e380300 100644 --- a/matchblox/engine/C_MatchBloxEngine.cpp +++ b/matchblox/engine/C_MatchBloxEngine.cpp @@ -117,7 +117,7 @@ GameResult C_MatchBloxEngine::ProcessMsgs(void) break;
case ACTION_START:
Abort();
- NewGame(0, l_pMsg1->gamemode, BS_SMALL);
+ NewGame(l_pMsg1->gamemode);
break;
case ACTION_RESUME:
Resume();
@@ -426,13 +426,9 @@ bool C_MatchBloxEngine::NewGame(int f_iGameMode) {
if(m_State == ES_INITIALISED)
{
- switch (f_iGameMode)
- {
- case 0:
- m_bHeadTrackingEnabled = true;
- m_bStereoEnabled = true;
- m_CurrentBox = BoxSize::BS_MED;
- }
+ m_bHeadTrackingEnabled = (int)(f_iGameMode & GO_HEADTRACKING);
+ m_bStereoEnabled = (int)(f_iGameMode & GO_STEREOVISION);
+ m_CurrentBox = (BoxSize)((f_iGameMode & (255 - 8)) >> 3);
//prepare a session struct for administration
m_pCurrentSession = new GameSession(m_GameSettings.m_iNrOfTurns, m_CurrentBox);
|