Implemented dirty flag for map transparency cache and outside cache.
Merge branch 'map3d_grid_access_refactor' into map3d_wip

Conflicts:
	src/map.cpp
	src/map.h