News:

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

Linking powerlines

Started by jamespetts, July 21, 2013, 11:40:42 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

jamespetts

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.
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.

kierongreen

Everything to do with powerlines is in Dings/leitung and dataobj/powernet from memory.

Dwachs

the checks for building powerlines are in  wegbauer_t::is_allowed_step
Parsley, sage, rosemary, and maggikraut.

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.