Refactored the map system (read more)
The region's width, height and depth are all defined by preprocessor macros. The rest of the map system has been updated to match. The programs proper need to be updated as well. It would be a good idea to include the macros' values as part of the initial communication protocols, so that the clients don't connect to a server that is using the wrong sized regions.
This commit is contained in:
@@ -468,6 +468,7 @@ int InWorld::CheckBufferDistance(Region* const region) {
|
||||
return std::max(abs(x), abs(y));
|
||||
}
|
||||
|
||||
//TODO: eew ugly
|
||||
void InWorld::UpdateMap() {
|
||||
//prune distant regions
|
||||
for (auto it = mapPager.GetContainer()->begin(); it != mapPager.GetContainer()->end(); /* EMPTY */) {
|
||||
|
||||
Reference in New Issue
Block a user