kristoisberg/samp-map-zones

Consider adding area counts to map data array

spacemud opened this issue · 0 comments

How's the hangover?

Rather than using GetMapZoneAreaCount and looping each time we want to know how many areas are contained in a zone, this could be hard-coded into the array similar to the sound IDs. This data is essentially static so it would be a small performance gain. I have the area counts for each zone if you're interested.

Further, a MAX_MAP_ZONE_AREAS definition for the maximum number of areas a map zone can contain would be helpful for declaring arrays.