equal
deleted
inserted
replaced
133 SENDIPC("!"); |
133 SENDIPC("!"); |
134 break; |
134 break; |
135 } |
135 } |
136 case 'C': { |
136 case 'C': { |
137 switch (gameType) { |
137 switch (gameType) { |
138 case gtLocal: |
138 case gtLocal: { |
|
139 SendConfig(); |
|
140 break; |
|
141 } |
139 case gtQLocal: { |
142 case gtQLocal: { |
140 SendConfig(); |
143 SendQuickConfig(); |
141 break; |
144 break; |
142 } |
145 } |
143 case gtDemo: break; |
146 case gtDemo: break; |
144 case gtNet: { |
147 case gtNet: { |
145 SENDIPC("TN"); |
148 SENDIPC("TN"); |
303 } |
306 } |
304 |
307 |
305 // read demo |
308 // read demo |
306 QDataStream stream(&demofile); |
309 QDataStream stream(&demofile); |
307 char buf[512]; |
310 char buf[512]; |
308 quint32 readbytes; |
311 int readbytes; |
309 do |
312 do |
310 { |
313 { |
311 readbytes = stream.readRawData((char *)&buf, 512); |
314 readbytes = stream.readRawData((char *)&buf, 512); |
312 toSendBuf.append(QByteArray((char *)&buf, readbytes)); |
315 toSendBuf.append(QByteArray((char *)&buf, readbytes)); |
313 |
316 |