Skip to main content
Topic: Numbers of halt in debug message (Read 3420 times) previous topic - next topic

Numbers of halt in debug message

Is it possible to add numbers of halt infomation of loading savegame in debug message ?
Thank you.

Code: [Select]
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");


Re: Numbers of halt in debug message

Reply #1
You could have done that yourself ... done. Although this is just the initial count, the real number of stops is likely different.

Re: Numbers of halt in debug message

Reply #2
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