author | unc0rr |
Tue, 03 Oct 2006 19:02:08 +0000 | |
changeset 181 | 7dfffbf0c7f6 |
parent 180 | ea83b9e9057f |
child 183 | 57c2ef19f719 |
permissions | -rw-r--r-- |
25 | 1 |
/* |
2 |
* Hedgewars, a worms-like game |
|
128 | 3 |
* Copyright (c) 2005, 2006 Andrey Korotaev <unC0Rr@gmail.com> |
25 | 4 |
* |
5 |
* Distributed under the terms of the BSD-modified licence: |
|
6 |
* |
|
7 |
* Permission is hereby granted, free of charge, to any person obtaining a copy |
|
8 |
* of this software and associated documentation files (the "Software"), to deal |
|
9 |
* with the Software without restriction, including without limitation the |
|
10 |
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or |
|
11 |
* sell copies of the Software, and to permit persons to whom the Software is |
|
12 |
* furnished to do so, subject to the following conditions: |
|
13 |
* |
|
14 |
* 1. Redistributions of source code must retain the above copyright notice, |
|
15 |
* this list of conditions and the following disclaimer. |
|
16 |
* 2. Redistributions in binary form must reproduce the above copyright notice, |
|
17 |
* this list of conditions and the following disclaimer in the documentation |
|
18 |
* and/or other materials provided with the distribution. |
|
19 |
* 3. The name of the author may not be used to endorse or promote products |
|
20 |
* derived from this software without specific prior written permission. |
|
21 |
* |
|
22 |
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED |
|
23 |
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF |
|
24 |
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO |
|
25 |
* EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
|
26 |
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, |
|
27 |
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; |
|
28 |
* OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, |
|
29 |
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR |
|
30 |
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF |
|
31 |
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
|
32 |
*/ |
|
33 |
||
34 |
#include <QMessageBox> |
|
35 |
#include <QProcess> |
|
36 |
#include <QTimer> |
|
37 |
#include <QString> |
|
38 |
#include <QByteArray> |
|
86
664b536a1c27
Predefined teams, 'simple game' doesn't need to create team
unc0rr
parents:
85
diff
changeset
|
39 |
#include <QFile> |
25 | 40 |
#include <QTextStream> |
127 | 41 |
#include <QUuid> |
86
664b536a1c27
Predefined teams, 'simple game' doesn't need to create team
unc0rr
parents:
85
diff
changeset
|
42 |
|
25 | 43 |
#include "game.h" |
44 |
#include "hwconsts.h" |
|
85
44d9045b26ff
New GameCFGWidget. Now it's possible to set forts mode from ui
unc0rr
parents:
84
diff
changeset
|
45 |
#include "gameuiconfig.h" |
87 | 46 |
#include "gamecfgwidget.h" |
25 | 47 |
|
180
ea83b9e9057f
tcp sockets are incapsulated in TCPBase class now
displacer
parents:
178
diff
changeset
|
48 |
HWGame::HWGame(GameUIConfig * config, GameCFGWidget * gamecfg) : |
ea83b9e9057f
tcp sockets are incapsulated in TCPBase class now
displacer
parents:
178
diff
changeset
|
49 |
TCPBase(true) |
25 | 50 |
{ |
84 | 51 |
this->config = config; |
85
44d9045b26ff
New GameCFGWidget. Now it's possible to set forts mode from ui
unc0rr
parents:
84
diff
changeset
|
52 |
this->gamecfg = gamecfg; |
25 | 53 |
TeamCount = 0; |
26 | 54 |
seed = ""; |
25 | 55 |
} |
56 |
||
178
efdc2a63be8e
united TCP transfers for start game and receive preview
displacer
parents:
177
diff
changeset
|
57 |
void HWGame::onClientDisconnect() |
25 | 58 |
{ |
157 | 59 |
SaveDemo(cfgdir->absolutePath() + "/Demos/LastRound.hwd_1"); |
25 | 60 |
} |
61 |
||
62 |
void HWGame::SendTeamConfig(int index) |
|
63 |
{ |
|
31
99888245a4e8
Now net game is near available, but exception occurs...
unc0rr
parents:
28
diff
changeset
|
64 |
LocalCFG(teams[index]); |
25 | 65 |
} |
66 |
||
67 |
void HWGame::SendConfig() |
|
68 |
{ |
|
180
ea83b9e9057f
tcp sockets are incapsulated in TCPBase class now
displacer
parents:
178
diff
changeset
|
69 |
SendIPC(QString("eseed %1").arg(seed).toAscii()); |
ea83b9e9057f
tcp sockets are incapsulated in TCPBase class now
displacer
parents:
178
diff
changeset
|
70 |
SendIPC(QString("etheme %1").arg(config->GetRandomTheme()).toAscii()); |
ea83b9e9057f
tcp sockets are incapsulated in TCPBase class now
displacer
parents:
178
diff
changeset
|
71 |
SendIPC("TL"); |
ea83b9e9057f
tcp sockets are incapsulated in TCPBase class now
displacer
parents:
178
diff
changeset
|
72 |
SendIPC(QString("e$gmflags %1").arg(gamecfg->getGameFlags()).toAscii()); |
141 | 73 |
|
74 |
for (int i = 0; i < TeamCount; i++) |
|
75 |
{ |
|
180
ea83b9e9057f
tcp sockets are incapsulated in TCPBase class now
displacer
parents:
178
diff
changeset
|
76 |
SendIPC("eaddteam"); |
141 | 77 |
LocalCFG(teams[i]); |
180
ea83b9e9057f
tcp sockets are incapsulated in TCPBase class now
displacer
parents:
178
diff
changeset
|
78 |
SendIPC(QString("ecolor %1").arg(65535 << i * 8).toAscii()); |
141 | 79 |
for (int t = 0; t < hdNum[teams[i]]; t++) |
180
ea83b9e9057f
tcp sockets are incapsulated in TCPBase class now
displacer
parents:
178
diff
changeset
|
80 |
SendIPC(QString("eadd hh%1 0").arg(t).toAscii()); |
141 | 81 |
} |
82 |
} |
|
83 |
||
84 |
void HWGame::SendQuickConfig() |
|
85 |
{ |
|
180
ea83b9e9057f
tcp sockets are incapsulated in TCPBase class now
displacer
parents:
178
diff
changeset
|
86 |
SendIPC(QString("eseed %1").arg(seed).toAscii()); |
ea83b9e9057f
tcp sockets are incapsulated in TCPBase class now
displacer
parents:
178
diff
changeset
|
87 |
SendIPC(QString("etheme %1").arg(config->GetRandomTheme()).toAscii()); |
ea83b9e9057f
tcp sockets are incapsulated in TCPBase class now
displacer
parents:
178
diff
changeset
|
88 |
SendIPC("TL"); |
ea83b9e9057f
tcp sockets are incapsulated in TCPBase class now
displacer
parents:
178
diff
changeset
|
89 |
SendIPC(QString("e$gmflags %1").arg(gamecfg->getGameFlags()).toAscii()); |
ea83b9e9057f
tcp sockets are incapsulated in TCPBase class now
displacer
parents:
178
diff
changeset
|
90 |
SendIPC("eaddteam"); |
86
664b536a1c27
Predefined teams, 'simple game' doesn't need to create team
unc0rr
parents:
85
diff
changeset
|
91 |
LocalCFG(0); |
180
ea83b9e9057f
tcp sockets are incapsulated in TCPBase class now
displacer
parents:
178
diff
changeset
|
92 |
SendIPC("ecolor 65535"); |
ea83b9e9057f
tcp sockets are incapsulated in TCPBase class now
displacer
parents:
178
diff
changeset
|
93 |
SendIPC("eadd hh0 0"); |
ea83b9e9057f
tcp sockets are incapsulated in TCPBase class now
displacer
parents:
178
diff
changeset
|
94 |
SendIPC("eadd hh1 0"); |
ea83b9e9057f
tcp sockets are incapsulated in TCPBase class now
displacer
parents:
178
diff
changeset
|
95 |
SendIPC("eadd hh2 0"); |
ea83b9e9057f
tcp sockets are incapsulated in TCPBase class now
displacer
parents:
178
diff
changeset
|
96 |
SendIPC("eadd hh3 0"); |
ea83b9e9057f
tcp sockets are incapsulated in TCPBase class now
displacer
parents:
178
diff
changeset
|
97 |
SendIPC("eaddteam"); |
97
e7c1df9cce2c
- make the game be run from ${PREFIX}/bin with data in ${PREFIX}/share/hedgewars/Data
unc0rr
parents:
87
diff
changeset
|
98 |
LocalCFG(2); |
180
ea83b9e9057f
tcp sockets are incapsulated in TCPBase class now
displacer
parents:
178
diff
changeset
|
99 |
SendIPC("ecolor 16776960"); |
ea83b9e9057f
tcp sockets are incapsulated in TCPBase class now
displacer
parents:
178
diff
changeset
|
100 |
SendIPC("eadd hh0 1"); |
ea83b9e9057f
tcp sockets are incapsulated in TCPBase class now
displacer
parents:
178
diff
changeset
|
101 |
SendIPC("eadd hh1 1"); |
ea83b9e9057f
tcp sockets are incapsulated in TCPBase class now
displacer
parents:
178
diff
changeset
|
102 |
SendIPC("eadd hh2 1"); |
ea83b9e9057f
tcp sockets are incapsulated in TCPBase class now
displacer
parents:
178
diff
changeset
|
103 |
SendIPC("eadd hh3 1"); |
25 | 104 |
} |
105 |
||
43 | 106 |
void HWGame::ParseMessage(const QByteArray & msg) |
25 | 107 |
{ |
141 | 108 |
switch(msg.data()[1]) { |
109 |
case '?': { |
|
31
99888245a4e8
Now net game is near available, but exception occurs...
unc0rr
parents:
28
diff
changeset
|
110 |
if (gameType == gtNet) |
99888245a4e8
Now net game is near available, but exception occurs...
unc0rr
parents:
28
diff
changeset
|
111 |
emit SendNet(QByteArray("\x01""?")); |
99888245a4e8
Now net game is near available, but exception occurs...
unc0rr
parents:
28
diff
changeset
|
112 |
else |
180
ea83b9e9057f
tcp sockets are incapsulated in TCPBase class now
displacer
parents:
178
diff
changeset
|
113 |
SendIPC("!"); |
25 | 114 |
break; |
115 |
} |
|
141 | 116 |
case 'C': { |
117 |
switch (gameType) { |
|
142 | 118 |
case gtLocal: { |
119 |
SendConfig(); |
|
120 |
break; |
|
121 |
} |
|
141 | 122 |
case gtQLocal: { |
142 | 123 |
SendQuickConfig(); |
141 | 124 |
break; |
125 |
} |
|
126 |
case gtDemo: break; |
|
127 |
case gtNet: { |
|
180
ea83b9e9057f
tcp sockets are incapsulated in TCPBase class now
displacer
parents:
178
diff
changeset
|
128 |
SendIPC("TN"); |
141 | 129 |
emit SendNet(QByteArray("\x01""C")); |
130 |
break; |
|
131 |
} |
|
32
78bff13b11c0
With this patch the game doesn't crash when gaming by net
unc0rr
parents:
31
diff
changeset
|
132 |
} |
25 | 133 |
break; |
134 |
} |
|
141 | 135 |
case 'E': { |
43 | 136 |
QMessageBox::critical(0, |
137 |
"Hedgewars: error message", |
|
138 |
QString().append(msg.mid(2)).left(msg.size() - 6), |
|
139 |
QMessageBox::Ok, |
|
140 |
QMessageBox::NoButton, |
|
141 |
QMessageBox::NoButton); |
|
142 |
return; |
|
143 |
} |
|
141 | 144 |
case '+': { |
36 | 145 |
if (gameType == gtNet) |
146 |
{ |
|
43 | 147 |
emit SendNet(msg); |
36 | 148 |
} |
25 | 149 |
break; |
150 |
} |
|
141 | 151 |
default: { |
31
99888245a4e8
Now net game is near available, but exception occurs...
unc0rr
parents:
28
diff
changeset
|
152 |
if (gameType == gtNet) |
99888245a4e8
Now net game is near available, but exception occurs...
unc0rr
parents:
28
diff
changeset
|
153 |
{ |
43 | 154 |
emit SendNet(msg); |
31
99888245a4e8
Now net game is near available, but exception occurs...
unc0rr
parents:
28
diff
changeset
|
155 |
} |
43 | 156 |
demo->append(msg); |
25 | 157 |
} |
158 |
} |
|
159 |
} |
|
160 |
||
31
99888245a4e8
Now net game is near available, but exception occurs...
unc0rr
parents:
28
diff
changeset
|
161 |
void HWGame::FromNet(const QByteArray & msg) |
99888245a4e8
Now net game is near available, but exception occurs...
unc0rr
parents:
28
diff
changeset
|
162 |
{ |
99888245a4e8
Now net game is near available, but exception occurs...
unc0rr
parents:
28
diff
changeset
|
163 |
RawSendIPC(msg); |
26 | 164 |
} |
165 |
||
177 | 166 |
void HWGame::onClientRead() |
167 |
{ |
|
43 | 168 |
quint8 msglen; |
169 |
quint32 bufsize; |
|
170 |
while (((bufsize = readbuffer.size()) > 0) && |
|
171 |
((msglen = readbuffer.data()[0]) < bufsize)) |
|
25 | 172 |
{ |
43 | 173 |
QByteArray msg = readbuffer.left(msglen + 1); |
174 |
readbuffer.remove(0, msglen + 1); |
|
175 |
ParseMessage(msg); |
|
25 | 176 |
} |
177 |
} |
|
178 |
||
177 | 179 |
QStringList HWGame::setArguments() |
180 |
{ |
|
181 |
QStringList arguments; |
|
84 | 182 |
arguments << resolutions[0][config->vid_Resolution()]; |
183 |
arguments << resolutions[1][config->vid_Resolution()]; |
|
55
e09f7c952a40
Send run parameters by cmd line, game parameters by IPC... breaks network game
unc0rr
parents:
52
diff
changeset
|
184 |
arguments << "16"; |
25 | 185 |
arguments << "46631"; |
84 | 186 |
arguments << (config->vid_Fullscreen() ? "1" : "0"); |
187 |
arguments << (config->isSoundEnabled() ? "1" : "0"); |
|
80 | 188 |
arguments << tr("en.txt"); |
174 | 189 |
arguments << "128"; |
177 | 190 |
return arguments; |
25 | 191 |
} |
192 |
||
140
50ccde437ea1
teams and hedgedogs num selection added to HWgame
displacer
parents:
128
diff
changeset
|
193 |
void HWGame::AddTeam(const QString & teamname, unsigned char numHedgedogs) |
25 | 194 |
{ |
195 |
if (TeamCount == 5) return; |
|
196 |
teams[TeamCount] = teamname; |
|
197 |
TeamCount++; |
|
140
50ccde437ea1
teams and hedgedogs num selection added to HWgame
displacer
parents:
128
diff
changeset
|
198 |
hdNum[teamname]=numHedgedogs; |
25 | 199 |
} |
200 |
||
201 |
void HWGame::SaveDemo(const QString & filename) |
|
202 |
{ |
|
157 | 203 |
demo->replace(QByteArray("\x02TL"), QByteArray("\x02TD")); |
204 |
demo->replace(QByteArray("\x02TN"), QByteArray("\x02TD")); |
|
205 |
||
25 | 206 |
QFile demofile(filename); |
207 |
if (!demofile.open(QIODevice::WriteOnly)) |
|
208 |
{ |
|
28 | 209 |
QMessageBox::critical(0, |
25 | 210 |
tr("Error"), |
80 | 211 |
tr("Cannot save demo to file %1").arg(filename), |
25 | 212 |
tr("Quit")); |
213 |
return ; |
|
214 |
} |
|
215 |
QDataStream stream(&demofile); |
|
216 |
stream.writeRawData(demo->constData(), demo->size()); |
|
217 |
demofile.close(); |
|
26 | 218 |
delete demo; |
25 | 219 |
} |
26 | 220 |
|
221 |
void HWGame::PlayDemo(const QString & demofilename) |
|
222 |
{ |
|
223 |
gameType = gtDemo; |
|
224 |
QFile demofile(demofilename); |
|
225 |
if (!demofile.open(QIODevice::ReadOnly)) |
|
226 |
{ |
|
28 | 227 |
QMessageBox::critical(0, |
26 | 228 |
tr("Error"), |
80 | 229 |
tr("Cannot open demofile %1").arg(demofilename), |
26 | 230 |
tr("Quit")); |
231 |
return ; |
|
232 |
} |
|
233 |
||
234 |
// read demo |
|
235 |
QDataStream stream(&demofile); |
|
236 |
char buf[512]; |
|
142 | 237 |
int readbytes; |
26 | 238 |
do |
239 |
{ |
|
240 |
readbytes = stream.readRawData((char *)&buf, 512); |
|
32
78bff13b11c0
With this patch the game doesn't crash when gaming by net
unc0rr
parents:
31
diff
changeset
|
241 |
toSendBuf.append(QByteArray((char *)&buf, readbytes)); |
180
ea83b9e9057f
tcp sockets are incapsulated in TCPBase class now
displacer
parents:
178
diff
changeset
|
242 |
//SendIPC(QByteArray((char *)&buf, readbytes)); |
26 | 243 |
|
244 |
} while (readbytes > 0); |
|
245 |
demofile.close(); |
|
246 |
||
247 |
// run engine |
|
178
efdc2a63be8e
united TCP transfers for start game and receive preview
displacer
parents:
177
diff
changeset
|
248 |
demo = new QByteArray; |
32
78bff13b11c0
With this patch the game doesn't crash when gaming by net
unc0rr
parents:
31
diff
changeset
|
249 |
Start(); |
26 | 250 |
} |
31
99888245a4e8
Now net game is near available, but exception occurs...
unc0rr
parents:
28
diff
changeset
|
251 |
|
97
e7c1df9cce2c
- make the game be run from ${PREFIX}/bin with data in ${PREFIX}/share/hedgewars/Data
unc0rr
parents:
87
diff
changeset
|
252 |
void HWGame::StartNet() |
31
99888245a4e8
Now net game is near available, but exception occurs...
unc0rr
parents:
28
diff
changeset
|
253 |
{ |
99888245a4e8
Now net game is near available, but exception occurs...
unc0rr
parents:
28
diff
changeset
|
254 |
gameType = gtNet; |
99888245a4e8
Now net game is near available, but exception occurs...
unc0rr
parents:
28
diff
changeset
|
255 |
demo = new QByteArray; |
32
78bff13b11c0
With this patch the game doesn't crash when gaming by net
unc0rr
parents:
31
diff
changeset
|
256 |
Start(); |
31
99888245a4e8
Now net game is near available, but exception occurs...
unc0rr
parents:
28
diff
changeset
|
257 |
} |
99888245a4e8
Now net game is near available, but exception occurs...
unc0rr
parents:
28
diff
changeset
|
258 |
|
99888245a4e8
Now net game is near available, but exception occurs...
unc0rr
parents:
28
diff
changeset
|
259 |
void HWGame::StartLocal() |
99888245a4e8
Now net game is near available, but exception occurs...
unc0rr
parents:
28
diff
changeset
|
260 |
{ |
99888245a4e8
Now net game is near available, but exception occurs...
unc0rr
parents:
28
diff
changeset
|
261 |
gameType = gtLocal; |
99888245a4e8
Now net game is near available, but exception occurs...
unc0rr
parents:
28
diff
changeset
|
262 |
if (TeamCount < 2) return; |
172 | 263 |
seed = gamecfg->getCurrentSeed();//QUuid::createUuid().toString(); |
178
efdc2a63be8e
united TCP transfers for start game and receive preview
displacer
parents:
177
diff
changeset
|
264 |
demo = new QByteArray; |
32
78bff13b11c0
With this patch the game doesn't crash when gaming by net
unc0rr
parents:
31
diff
changeset
|
265 |
Start(); |
31
99888245a4e8
Now net game is near available, but exception occurs...
unc0rr
parents:
28
diff
changeset
|
266 |
} |
99888245a4e8
Now net game is near available, but exception occurs...
unc0rr
parents:
28
diff
changeset
|
267 |
|
86
664b536a1c27
Predefined teams, 'simple game' doesn't need to create team
unc0rr
parents:
85
diff
changeset
|
268 |
void HWGame::StartQuick() |
664b536a1c27
Predefined teams, 'simple game' doesn't need to create team
unc0rr
parents:
85
diff
changeset
|
269 |
{ |
141 | 270 |
gameType = gtQLocal; |
172 | 271 |
seed = gamecfg->getCurrentSeed();//QUuid::createUuid().toString(); |
178
efdc2a63be8e
united TCP transfers for start game and receive preview
displacer
parents:
177
diff
changeset
|
272 |
demo = new QByteArray; |
86
664b536a1c27
Predefined teams, 'simple game' doesn't need to create team
unc0rr
parents:
85
diff
changeset
|
273 |
Start(); |
664b536a1c27
Predefined teams, 'simple game' doesn't need to create team
unc0rr
parents:
85
diff
changeset
|
274 |
} |
664b536a1c27
Predefined teams, 'simple game' doesn't need to create team
unc0rr
parents:
85
diff
changeset
|
275 |
|
664b536a1c27
Predefined teams, 'simple game' doesn't need to create team
unc0rr
parents:
85
diff
changeset
|
276 |
|
31
99888245a4e8
Now net game is near available, but exception occurs...
unc0rr
parents:
28
diff
changeset
|
277 |
void HWGame::LocalCFG(const QString & teamname) |
99888245a4e8
Now net game is near available, but exception occurs...
unc0rr
parents:
28
diff
changeset
|
278 |
{ |
116 | 279 |
HWTeam team(teamname); |
86
664b536a1c27
Predefined teams, 'simple game' doesn't need to create team
unc0rr
parents:
85
diff
changeset
|
280 |
if (!team.LoadFromFile()) { |
664b536a1c27
Predefined teams, 'simple game' doesn't need to create team
unc0rr
parents:
85
diff
changeset
|
281 |
QMessageBox::critical(0, |
664b536a1c27
Predefined teams, 'simple game' doesn't need to create team
unc0rr
parents:
85
diff
changeset
|
282 |
"Error", |
664b536a1c27
Predefined teams, 'simple game' doesn't need to create team
unc0rr
parents:
85
diff
changeset
|
283 |
QString("Cannot load team config ""%1""").arg(teamname), |
664b536a1c27
Predefined teams, 'simple game' doesn't need to create team
unc0rr
parents:
85
diff
changeset
|
284 |
QMessageBox::Ok, |
664b536a1c27
Predefined teams, 'simple game' doesn't need to create team
unc0rr
parents:
85
diff
changeset
|
285 |
QMessageBox::NoButton, |
664b536a1c27
Predefined teams, 'simple game' doesn't need to create team
unc0rr
parents:
85
diff
changeset
|
286 |
QMessageBox::NoButton); |
664b536a1c27
Predefined teams, 'simple game' doesn't need to create team
unc0rr
parents:
85
diff
changeset
|
287 |
return; |
31
99888245a4e8
Now net game is near available, but exception occurs...
unc0rr
parents:
28
diff
changeset
|
288 |
} |
86
664b536a1c27
Predefined teams, 'simple game' doesn't need to create team
unc0rr
parents:
85
diff
changeset
|
289 |
RawSendIPC(team.IPCTeamInfo()); |
664b536a1c27
Predefined teams, 'simple game' doesn't need to create team
unc0rr
parents:
85
diff
changeset
|
290 |
} |
31
99888245a4e8
Now net game is near available, but exception occurs...
unc0rr
parents:
28
diff
changeset
|
291 |
|
86
664b536a1c27
Predefined teams, 'simple game' doesn't need to create team
unc0rr
parents:
85
diff
changeset
|
292 |
void HWGame::LocalCFG(quint8 num) |
664b536a1c27
Predefined teams, 'simple game' doesn't need to create team
unc0rr
parents:
85
diff
changeset
|
293 |
{ |
116 | 294 |
HWTeam team(num); |
86
664b536a1c27
Predefined teams, 'simple game' doesn't need to create team
unc0rr
parents:
85
diff
changeset
|
295 |
RawSendIPC(team.IPCTeamInfo()); |
31
99888245a4e8
Now net game is near available, but exception occurs...
unc0rr
parents:
28
diff
changeset
|
296 |
} |