aboutsummaryrefslogtreecommitdiff
path: root/advtrains_train_track/textures
diff options
context:
space:
mode:
authororwell96 <orwell@bleipb.de>2019-02-16 13:00:59 +0100
committerorwell96 <orwell@bleipb.de>2019-02-16 13:00:59 +0100
commitaa2b08b9853261e5e674348ffe122736dbd02b0b (patch)
treee21f8abae46ac111ff3cd6bab5a58807273666ec /advtrains_train_track/textures
parentede60d0a174d7439c42b9001008e08ef487c5416 (diff)
downloadadvtrains-aa2b08b9853261e5e674348ffe122736dbd02b0b.tar.gz
advtrains-aa2b08b9853261e5e674348ffe122736dbd02b0b.tar.bz2
advtrains-aa2b08b9853261e5e674348ffe122736dbd02b0b.zip
Fix TCBS crash also for route_ui
Diffstat (limited to 'advtrains_train_track/textures')
0 files changed, 0 insertions, 0 deletions
='#n142'>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 206 207
/*
Minetest
Copyright (C) 2010-2013 celeron55, Perttu Ahola <celeron55@gmail.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 "numeric.h"

#include "log.h"
#include "constants.h" // BS, MAP_BLOCKSIZE
#include "noise.h" // PseudoRandom, PcgRandom
#include "threading/mutex_auto_lock.h"
#include <cstring>
#include <cmath>


// myrand

PcgRandom g_pcgrand;

u32 myrand()
{
	return g_pcgrand.next();
}

void mysrand(unsigned int seed)
{