fixed map editor using fopen and cnd the lot instead of d_file_*