QTfrontend/hwform.cpp
changeset 681 7a20c50988ec
parent 674 a15c8e3c69b3
child 683 57d624f71e65
equal deleted inserted replaced
680:8ef26c8e8aa7 681:7a20c50988ec
    36 
    36 
    37 #include "hwform.h"
    37 #include "hwform.h"
    38 #include "game.h"
    38 #include "game.h"
    39 #include "team.h"
    39 #include "team.h"
    40 #include "teamselect.h"
    40 #include "teamselect.h"
       
    41 #include "selectWeapon.h"
    41 #include "gameuiconfig.h"
    42 #include "gameuiconfig.h"
    42 #include "pages.h"
    43 #include "pages.h"
    43 #include "hwconsts.h"
    44 #include "hwconsts.h"
    44 #include "newnetclient.h"
    45 #include "newnetclient.h"
    45 #include "gamecfgwidget.h"
    46 #include "gamecfgwidget.h"
   547 	}
   548 	}
   548 }
   549 }
   549 
   550 
   550 void HWForm::CreateGame(GameCFGWidget * gamecfg, TeamSelWidget* pTeamSelWidget)
   551 void HWForm::CreateGame(GameCFGWidget * gamecfg, TeamSelWidget* pTeamSelWidget)
   551 {
   552 {
   552 	game = new HWGame(config, gamecfg, pTeamSelWidget);
   553 	game = new HWGame(config, gamecfg, ui.pageSelectWeapon->pWeapons->getWeaponsString(), pTeamSelWidget);
   553 	connect(game, SIGNAL(GameStateChanged(GameState)), this, SLOT(GameStateChanged(GameState)));
   554 	connect(game, SIGNAL(GameStateChanged(GameState)), this, SLOT(GameStateChanged(GameState)));
   554 	connect(game, SIGNAL(GameStats(char, const QString &)), this, SLOT(GameStats(char, const QString &)));
   555 	connect(game, SIGNAL(GameStats(char, const QString &)), this, SLOT(GameStats(char, const QString &)));
   555 	connect(game, SIGNAL(ErrorMessage(const QString &)), this, SLOT(ShowErrorMessage(const QString &)), Qt::QueuedConnection);
   556 	connect(game, SIGNAL(ErrorMessage(const QString &)), this, SLOT(ShowErrorMessage(const QString &)), Qt::QueuedConnection);
   556 	connect(game, SIGNAL(HaveRecord(bool, const QByteArray &)), this, SLOT(GetRecord(bool, const QByteArray &)));
   557 	connect(game, SIGNAL(HaveRecord(bool, const QByteArray &)), this, SLOT(GetRecord(bool, const QByteArray &)));
   557 }
   558 }