SQC-15_online #1
| @@ -201,7 +201,7 @@ void Server::Run() { | ||||
| 		sync.ammo = 0; | ||||
| 		sync.timestamp = 0; | ||||
| 		sync.timer = m_game.countdown; | ||||
| 		sendPack<Sync>(conn->getSock(), &sync, &m_buf); | ||||
| 		sendPackTo<Sync>(m_sock_udp, &sync, &m_buf, conn->getAddr()); | ||||
| 	} | ||||
|  | ||||
| 	while (!endgame) { | ||||
|   | ||||
| @@ -1341,7 +1341,8 @@ void Engine::Render(float elapsedTime) { | ||||
| 				case OUTPUT: | ||||
| 					if (Deserialize(&out, pck, &bsize)) { | ||||
| 						if (!m_players.contains(out.id)) { | ||||
| 							std::cout << "id be no good. "; | ||||
| 							 | ||||
| 							std::cout << out.id << " is id no good." << std::endl; | ||||
| 							break; | ||||
| 						} | ||||
| 						RemotePlayer* rt = static_cast<RemotePlayer*>(m_players[out.id]); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user