aboutsummaryrefslogtreecommitdiff
path: root/advtrains
diff options
context:
space:
mode:
authororwell96 <orwell@bleipb.de>2019-01-15 17:43:55 +0100
committerorwell96 <orwell@bleipb.de>2019-01-15 17:43:55 +0100
commita3baead979b62ce0a5dcff36654d7de597cf6708 (patch)
treeb1641ef4127abe8c6c651293ae1e07b822f927ab /advtrains
parentc180582f3d81ae4921d748b0a428fcd39c562e57 (diff)
downloadadvtrains-a3baead979b62ce0a5dcff36654d7de597cf6708.tar.gz
advtrains-a3baead979b62ce0a5dcff36654d7de597cf6708.tar.bz2
advtrains-a3baead979b62ce0a5dcff36654d7de597cf6708.zip
Fix Routingcode ARS
Diffstat (limited to 'advtrains')
0 files changed, 0 insertions, 0 deletions
ersion 2.1 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #include "mapgen_singlenode.h" #include "voxel.h" #include "mapblock.h" #include "mapnode.h" #include "map.h" #include "nodedef.h" #include "voxelalgorithms.h" #include "emerge.h" MapgenSinglenode::MapgenSinglenode(int mapgenid, MapgenParams *params, EmergeManager *emerge) : Mapgen(mapgenid, params, emerge) { flags = params->flags; INodeDefManager *ndef = emerge->ndef; c_node = ndef->getId("mapgen_singlenode"); if (c_node == CONTENT_IGNORE) c_node = CONTENT_AIR; MapNode n_node(c_node); set_light = (ndef->get(n_node).sunlight_propagates) ? LIGHT_SUN : 0x00; }