equal
deleted
inserted
replaced
51 } |
51 } |
52 |
52 |
53 void HWGame::SendConfig() |
53 void HWGame::SendConfig() |
54 { |
54 { |
55 SendIPC(QString("eseed %1").arg(seed).toAscii()); |
55 SendIPC(QString("eseed %1").arg(seed).toAscii()); |
|
56 // SendIPC(QString("emap %1").arg("mushrooms").toAscii()); |
56 SendIPC(QString("etheme %1").arg(config->GetRandomTheme()).toAscii()); |
57 SendIPC(QString("etheme %1").arg(config->GetRandomTheme()).toAscii()); |
57 SendIPC("TL"); |
58 SendIPC("TL"); |
58 SendIPC(QString("e$gmflags %1").arg(gamecfg->getGameFlags()).toAscii()); |
59 SendIPC(QString("e$gmflags %1").arg(gamecfg->getGameFlags()).toAscii()); |
59 |
60 |
60 for (int i = 0; i < TeamCount; i++) |
61 for (int i = 0; i < TeamCount; i++) |
82 SendIPC("eadd hh2 0"); |
83 SendIPC("eadd hh2 0"); |
83 SendIPC("eadd hh3 0"); |
84 SendIPC("eadd hh3 0"); |
84 SendIPC("eaddteam"); |
85 SendIPC("eaddteam"); |
85 LocalCFG(2); |
86 LocalCFG(2); |
86 SendIPC("ecolor 16776960"); |
87 SendIPC("ecolor 16776960"); |
87 SendIPC("eadd hh0 1"); |
88 SendIPC("eadd hh0 5"); |
88 SendIPC("eadd hh1 1"); |
89 SendIPC("eadd hh1 4"); |
89 SendIPC("eadd hh2 1"); |
90 SendIPC("eadd hh2 4"); |
90 SendIPC("eadd hh3 1"); |
91 SendIPC("eadd hh3 3"); |
91 } |
92 } |
92 |
93 |
93 void HWGame::ParseMessage(const QByteArray & msg) |
94 void HWGame::ParseMessage(const QByteArray & msg) |
94 { |
95 { |
95 switch(msg.data()[1]) { |
96 switch(msg.data()[1]) { |