The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: z9999 on May 02, 2009, 02:53:02 pm

Title: Numbers of halt in debug message
Post by: z9999 on May 02, 2009, 02:53:02 pm
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");

Title: Re: Numbers of halt in debug message
Post by: prissi on May 02, 2009, 09:27:08 pm
You could have done that yourself ... done. Although this is just the initial count, the real number of stops is likely different.
Title: Re: Numbers of halt in debug message
Post by: z9999 on May 03, 2009, 11:20:06 am
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