Add a note on some code that should be moved to a function in mapgen.cpp