Remeved the commented BUGFIX tags
This commit is contained in:
@@ -85,7 +85,7 @@ void CleanUp::Update() {
|
|||||||
SetNextScene(SceneList::MAINMENU);
|
SetNextScene(SceneList::MAINMENU);
|
||||||
}
|
}
|
||||||
|
|
||||||
//BUGFIX: Eat incoming packets
|
//Eat incoming packets
|
||||||
while(network.Receive());
|
while(network.Receive());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ LobbyMenu::LobbyMenu(int* const argClientIndex, int* const argAccountIndex):
|
|||||||
//set the server list's position
|
//set the server list's position
|
||||||
listBox = {300, 50, 200, font.GetCharH()};
|
listBox = {300, 50, 200, font.GetCharH()};
|
||||||
|
|
||||||
//BUGFIX: Eat incoming packets
|
//Eat incoming packets
|
||||||
while(network.Receive());
|
while(network.Receive());
|
||||||
|
|
||||||
//Initial broadcast
|
//Initial broadcast
|
||||||
|
|||||||
@@ -26,7 +26,7 @@
|
|||||||
|
|
||||||
#include <stdexcept>
|
#include <stdexcept>
|
||||||
|
|
||||||
//BUGFIX: memset() is used before sending a packet to remove old data; you don't want to send sensitive data over the network
|
//NOTE: memset() is used before sending a packet to remove old data; you don't want to send sensitive data over the network
|
||||||
//NOTE: don't confuse SerialPacketBase with UDPpacket
|
//NOTE: don't confuse SerialPacketBase with UDPpacket
|
||||||
|
|
||||||
void UDPNetworkUtility::Open(int port) {
|
void UDPNetworkUtility::Open(int port) {
|
||||||
|
|||||||
@@ -35,8 +35,6 @@ void ServerApplication::HandlePing(ServerPacket* const argPacket) {
|
|||||||
|
|
||||||
void ServerApplication::HandlePong(ServerPacket* const argPacket) {
|
void ServerApplication::HandlePong(ServerPacket* const argPacket) {
|
||||||
//find and update the specified client
|
//find and update the specified client
|
||||||
|
|
||||||
//BUGFIX: running multiple clients on one computer will result in matching host values; check the ports too
|
|
||||||
for (auto& it : clientMap) {
|
for (auto& it : clientMap) {
|
||||||
if (it.second.GetAddress().host == argPacket->srcAddress.host &&
|
if (it.second.GetAddress().host == argPacket->srcAddress.host &&
|
||||||
it.second.GetAddress().port == argPacket->srcAddress.port
|
it.second.GetAddress().port == argPacket->srcAddress.port
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
TODO: Remove the BUGFIX tags
|
|
||||||
TODO: Rejection messages
|
|
||||||
TODO: The error handling is terrible
|
TODO: The error handling is terrible
|
||||||
TODO: Get the rooms working, even if only via hotkeys
|
TODO: Get the rooms working, even if only via hotkeys
|
||||||
TODO: Fix shoddy movement
|
TODO: Fix shoddy movement
|
||||||
|
|||||||
Reference in New Issue
Block a user