Apparently it was the #45 fix that broke collisions

This commit is contained in:
2016-03-22 00:47:38 +11:00
parent 30aa11c083
commit 12f86f22de
6 changed files with 21 additions and 12 deletions
+8 -1
View File
@@ -563,7 +563,14 @@ void ServerApplication::hRegionRequest(RegionPacket* const argPacket) {
std::cerr << "Error message sent: " << newPacket.text << std::endl;
return;
}
Region* region = room->GetPager()->GetRegion(argPacket->x, argPacket->y);
//A strange reoccurance of #45 caused this
Region* region = room->GetPager()->FindRegion(argPacket->x, argPacket->y);
//TODO: (0) load regions
if (region == nullptr) {
region = room->GetPager()->CreateRegion(argPacket->x, argPacket->y);
std::cout << "Summoned a room" << std::endl;
}
//send the content
RegionPacket newPacket;