Commit b1b0e0e2 authored by Gerhard Stein's avatar Gerhard Stein

SinglePlayer option fixes

parent 3c123422
......@@ -13,6 +13,8 @@
#ifndef MISC_H_
#define MISC_H_
#include <string>
unsigned int rnd(void);
bool getProbability(unsigned short prob);
......
......@@ -27,7 +27,7 @@ void MainMenu::createGameMenu( const bool openedGamePlay,
{
#if defined (SINGLEPLAYER)
gBehaviorEngine.mPlayers = 1;
gBehaviorEngine.setNumPlayers(1);
GsButton *button = new GameButton( "New Game", new NewGamePlayersEvent(1), style );
#else
......
......@@ -31,7 +31,7 @@ void MainMenu::createVorticonMenu( const bool openedGamePlay )
{
#if defined (SINGLEPLAYER)
gBehaviorEngine.mPlayers = 1;
gBehaviorEngine.setNumPlayers(1);
Button *button = new Button( "New Game",
new OpenMenuEvent(new CDifficultySelection) );
#else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment