View Single Post
Old November 23, 2016, 13:20   #16
PowerWyrm
Veteran
 
PowerWyrm's Avatar
 
Join Date: Apr 2008
Posts: 2,051
PowerWyrm is on a distinguished road
Quote:
Originally Posted by Pete Mack View Post
Seems to me storing levels makes more sense per player than per grid region. MxN gets big fast. But the number of players should be more or less constant.
Only a pointer is stored per wilderness square, which is NULL by default (except the town/suburb). The corresponding level is only allocated when a player enters the area (and deallocated when there are no more players on the level).
__________________
PWMAngband variant maintainer - check http://www.mangband.org/forum/viewforum.php?f=9 to learn more about this new variant!
PowerWyrm is offline   Reply With Quote