Skip to main content
Topic: [Code v3.7] Duplicated Code in rebuild_connexions() (Read 2849 times) previous topic - next topic

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

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();
      ****ert(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;


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

Reply #1
Well spotted!
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.