News:

Simutrans Wiki Manual
The official on-line manual for Simutrans. Read and contribute.

[Code v3.7] Duplicated Code in rebuild_connexions()

Started by knightly, May 12, 2009, 02:40:10 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

knightly

James, I guess the following 2 lines in blue are duplicated?

Quote

   // now for the lines
   ITERATE(registered_lines,i)
   {
      const linehandle_t line = registered_lines[ i ];
      fpl = line->get_schedule();
      assert(fpl);
      // ok, now add line to the connections
      if(line->count_convoys( )> 0 && (i_am_public || line->get_convoy(0)->get_besitzer() == get_besitzer()))
      {
         INT_CHECK("simhalt.cc 613");
         schedule_t *fpl = line->get_schedule();

         if(fpl != NULL)
         {
            halthandle_t tmp_halt;


jamespetts

Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.