The International Simutrans Forum

Development => Technical Documentation => Topic started by: jamespetts on July 21, 2013, 11:40:42 AM

Title: Linking powerlines
Post by: jamespetts on July 21, 2013, 11:40:42 AM
May I ask - where in the code is the routine for checking whether power lines should be connected to each other based on whether they are owned by the same player? I am having trouble finding this, and need to fix a bug in Experimental whereby the public player cannot connect to other players' networks.
Title: Re: Linking powerlines
Post by: kierongreen on July 21, 2013, 12:11:59 PM
Everything to do with powerlines is in Dings/leitung and dataobj/powernet from memory.
Title: Re: Linking powerlines
Post by: Dwachs on July 21, 2013, 07:04:57 PM
the checks for building powerlines are in  wegbauer_t::is_allowed_step
Title: Re: Linking powerlines
Post by: jamespetts on July 21, 2013, 07:19:40 PM
Thank you.