News:

Want to praise Simutrans?
Your feedback is important for us ;D.

Numbers of halt in debug message

Started by z9999, May 02, 2009, 02:53:02 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

z9999

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");



prissi

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

z9999

#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