Is it possible to add numbers of halt infomation of loading savegame in debug message ?
Thank you.
Index: simworld.cc
===================================================================
--- simworld.cc (r2441)
+++ simworld.cc (copy)
@@ -3620,6 +3620,7 @@
dbg->warning("karte_t::laden()", "could not restore stopnear %i,%i", halt->get_init_pos().x, halt->get_init_pos().y );
}
}
+ DBG_MESSAGE("karte_t::laden()","%d halts loaded",halt_count);
}
DBG_MESSAGE("karte_t::laden()", "load convois");
You could have done that yourself ... done. Although this is just the initial count, the real number of stops is likely different.
Thank you, but unfortunately, you added it in wrong place.
We can't compile it.
Quote
===> CXX simworld.cc
simworld.cc: In member function `void karte_t::laden(loadsave_t*)':
simworld.cc:3624: error: `halt_count' was not declared in this scope
simworld.cc:3624: warning: unused variable 'halt_count'
make: *** [simworld.o] Error 1