Просмотр исходного кода

Added debug output to navi.cpp (#7765)

Add Loading info to write_npc_distances() for resolving potential halts
Stolao 2 лет назад
Родитель
Сommit
ccd7e5c14a
1 измененных файлов с 3 добавлено и 0 удалено
  1. 3 0
      src/map/navi.cpp

+ 3 - 0
src/map/navi.cpp

@@ -551,6 +551,9 @@ void write_npc_distances() {
 
 	for (int mapid = 0; mapid < map_num; mapid++) {
 		auto m = map_getmapdata(mapid);
+#ifdef DETAILED_LOADING_OUTPUT
+		ShowStatus("Loading [%i/%i]" CL_CLL "\r", mapid, map_num);
+#endif
 		if (m->navi.npcs.size() == 0) {
 			// ShowStatus("Skipped %s NPC distance table, no NPCs in map (%d/%d)\n", map[m].name, m, map_num);
 			continue;