Originally posted by [b]Lemongrass[/b]
doc/map_cache.txt:
[quote]
The first 6 bytes are a main header:
<unsigned long> file size
<unsigned short> number of maps
[/quote]
src/map/map.c:
[code]
// This is the main header found at the very beginning of the map cache
struct map_cache_main_header {
uint32 file_size;
uint16 map_count;
};
[/code]
So please match it up in the documentation file.

[quote]
The first 6 bytes are a main header:
[color=#ff0000]<unsigned int> file size[/color]
<unsigned short> number of maps
[/quote]
// Offtopic:
I do not know why the file size even has to be in there, but that is a different matter.
This post has been edited by
Lemongrass
on Nov 5, 2012 20:47