aboutsummaryrefslogtreecommitdiff
path: root/modpack.txt
diff options
context:
space:
mode:
authororwell96 <orwell@bleipb.de>2018-10-17 17:52:22 +0200
committerorwell96 <orwell@bleipb.de>2018-10-17 18:11:11 +0200
commitcd38b17eabb8cdc37bd7e11a89fd0fd049910ffc (patch)
treec53253e996691583408b0fdad9679356571b5ae8 /modpack.txt
parentc6bef1c358af39c25e0def8aa374e4474a6e334c (diff)
downloadadvtrains-cd38b17eabb8cdc37bd7e11a89fd0fd049910ffc.tar.gz
advtrains-cd38b17eabb8cdc37bd7e11a89fd0fd049910ffc.tar.bz2
advtrains-cd38b17eabb8cdc37bd7e11a89fd0fd049910ffc.zip
Address H#60, H#17, M#18 and M#7
duplicate "message" to "msg" make operation panel "cracky" remove inexistent dtime_s parameter add bones:bones to the list of not_blocking_trains nodes
Diffstat (limited to 'modpack.txt')
0 files changed, 0 insertions, 0 deletions
134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205
/*
Minetest
Copyright (C) 2016 MillersMan <millersman@users.noreply.github.com>

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 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 "reflowscan.h"
#include "map.h"
#include "mapblock.h"
#include "nodedef.h"
#include "util/timetaker.h"


ReflowScan::ReflowScan(Map *map, const NodeDefManager *ndef) :
	m_map(map),
	m_ndef(ndef)
{
}

void ReflowScan::scan(MapBlock *block, UniqueQueue<v3s16> *liquid_queue)
{
	m_block_pos = block->getPos();
	m_rel_block_pos = block->getPosRelative();
	m_liquid_queue = liquid_queue;

	// Prepare the lookup which is a 3x3x3 array of the blocks surrounding the
	// scanned block. Blocks are only added to the lookup if they are really
	// needed. The lookup is indexed manually to use the same index in a
	// bit-array (of uint32 type) which stores for unloaded blocks that they
	// were already fetched from Map but were actually nullptr.
	memset(m_lookup, 0, sizeof(m_lookup));