comment tweaks to bug tags
This commit is contained in:
@@ -34,7 +34,7 @@ function islandGenerator(region)
|
|||||||
end
|
end
|
||||||
|
|
||||||
--Get some regions
|
--Get some regions
|
||||||
--BUG: The server fails without at least one room
|
--BUG: #35 The server fails without at least one room
|
||||||
--TODO: Create rooms with names?
|
--TODO: Create rooms with names?
|
||||||
newRoom = RoomManager.CreateRoom()
|
newRoom = RoomManager.CreateRoom()
|
||||||
pager = Room.GetPager(newRoom)
|
pager = Room.GetPager(newRoom)
|
||||||
|
|||||||
@@ -146,7 +146,7 @@ void ServerApplication::Proc() {
|
|||||||
HandlePacket(packetBuffer);
|
HandlePacket(packetBuffer);
|
||||||
}
|
}
|
||||||
//update the internals
|
//update the internals
|
||||||
//BUG: #30 Update the internals i.e. player positions
|
//...
|
||||||
|
|
||||||
//TODO: This could be checked only every few seconds
|
//TODO: This could be checked only every few seconds
|
||||||
//Check connections
|
//Check connections
|
||||||
|
|||||||
@@ -170,9 +170,6 @@ void ServerApplication::HandleRegionRequest(RegionPacket* const argPacket) {
|
|||||||
//-------------------------
|
//-------------------------
|
||||||
|
|
||||||
void ServerApplication::HandleCharacterNew(CharacterPacket* const argPacket) {
|
void ServerApplication::HandleCharacterNew(CharacterPacket* const argPacket) {
|
||||||
//BUG: #27 Characters can be created with an invalid account index
|
|
||||||
//TODO: Make sure that a character's owner's account is loaded before continuing
|
|
||||||
|
|
||||||
//NOTE: misnomer, try to load the character first
|
//NOTE: misnomer, try to load the character first
|
||||||
int characterIndex = characterMgr.LoadCharacter(argPacket->accountIndex, argPacket->handle, argPacket->avatar);
|
int characterIndex = characterMgr.LoadCharacter(argPacket->accountIndex, argPacket->handle, argPacket->avatar);
|
||||||
|
|
||||||
@@ -285,6 +282,7 @@ void ServerApplication::HandleSynchronize(ClientPacket* const argPacket) {
|
|||||||
|
|
||||||
void ServerApplication::CleanupLostConnection(int clientIndex) {
|
void ServerApplication::CleanupLostConnection(int clientIndex) {
|
||||||
//NOTE: This assumes each player has only one account and character at a time
|
//NOTE: This assumes each player has only one account and character at a time
|
||||||
|
//TODO: handle multiple characters (bots, etc.)
|
||||||
|
|
||||||
//find the account
|
//find the account
|
||||||
int accountIndex = -1;
|
int accountIndex = -1;
|
||||||
@@ -304,7 +302,7 @@ void ServerApplication::CleanupLostConnection(int clientIndex) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//send a dissconnection message just in case
|
//send a disconnection message just in case
|
||||||
ClientPacket newPacket;
|
ClientPacket newPacket;
|
||||||
newPacket.type = SerialPacketType::DISCONNECT;
|
newPacket.type = SerialPacketType::DISCONNECT;
|
||||||
network.SendTo(clientMap[clientIndex].GetAddress(), &newPacket);
|
network.SendTo(clientMap[clientIndex].GetAddress(), &newPacket);
|
||||||
|
|||||||
Reference in New Issue
Block a user