equal
deleted
inserted
replaced
39 ammostr(ammo), |
39 ammostr(ammo), |
40 m_pTeamSelWidget(pTeamSelWidget) |
40 m_pTeamSelWidget(pTeamSelWidget) |
41 { |
41 { |
42 this->config = config; |
42 this->config = config; |
43 this->gamecfg = gamecfg; |
43 this->gamecfg = gamecfg; |
44 TeamCount = 0; |
|
45 netSuspend = false; |
44 netSuspend = false; |
46 } |
45 } |
47 |
46 |
48 HWGame::~HWGame() |
47 HWGame::~HWGame() |
49 { |
48 { |
314 arguments << tr("en.txt"); |
313 arguments << tr("en.txt"); |
315 |
314 |
316 return arguments; |
315 return arguments; |
317 } |
316 } |
318 |
317 |
319 void HWGame::AddTeam(const QString & teamname) |
|
320 { |
|
321 if (TeamCount == 5) return; |
|
322 teams[TeamCount] = teamname; |
|
323 TeamCount++; |
|
324 } |
|
325 |
|
326 void HWGame::PlayDemo(const QString & demofilename, bool isSave) |
318 void HWGame::PlayDemo(const QString & demofilename, bool isSave) |
327 { |
319 { |
328 gameType = isSave ? gtSave : gtDemo; |
320 gameType = isSave ? gtSave : gtDemo; |
329 QFile demofile(demofilename); |
321 QFile demofile(demofilename); |
330 if (!demofile.open(QIODevice::ReadOnly)) |
322 if (!demofile.open(QIODevice::ReadOnly)) |