equal
deleted
inserted
replaced
136 if(!(*it)->isReady()) return false; |
136 if(!(*it)->isReady()) return false; |
137 } |
137 } |
138 return true; |
138 return true; |
139 } |
139 } |
140 |
140 |
|
141 void HWNetServer::resetStart() |
|
142 { |
|
143 QList<HWConnectedClient*>::iterator it; |
|
144 for(it=connclients.begin(); it!=connclients.end(); ++it) { |
|
145 (*it)->readyToStart=false; |
|
146 } |
|
147 } |
|
148 |
141 QString HWNetServer::prepareConfig(QStringList lst) |
149 QString HWNetServer::prepareConfig(QStringList lst) |
142 { |
150 { |
143 QString msg=lst.join((QString)delimeter)+delimeter; |
151 QString msg=lst.join((QString)delimeter)+delimeter; |
144 for(QList<HWConnectedClient*>::iterator it=connclients.begin(); it!=connclients.end(); ++it) { |
152 for(QList<HWConnectedClient*>::iterator it=connclients.begin(); it!=connclients.end(); ++it) { |
145 if(!(*it)->isReady()) continue; |
153 if(!(*it)->isReady()) continue; |
232 if (lst[0]=="START:") { |
240 if (lst[0]=="START:") { |
233 readyToStart=true; |
241 readyToStart=true; |
234 if(m_hwserver->shouldStart(this)) { |
242 if(m_hwserver->shouldStart(this)) { |
235 // start |
243 // start |
236 m_hwserver->sendAll("RUNGAME"); |
244 m_hwserver->sendAll("RUNGAME"); |
|
245 m_hwserver->resetStart(); |
237 } |
246 } |
238 return; |
247 return; |
239 } |
248 } |
240 |
249 |
241 if(lst[0]=="CONFIG_PARAM") { |
250 if(lst[0]=="CONFIG_PARAM") { |