|
@@ -3,22 +3,23 @@
|
|
|
/** @file tgp.cpp OTTD Perlin Noise Landscape Generator, aka TerraGenesis Perlin */
|
|
|
|
|
|
#include "stdafx.h"
|
|
|
#include <math.h>
|
|
|
#include "openttd.h"
|
|
|
#include "clear_map.h"
|
|
|
#include "table/strings.h"
|
|
|
#include "clear_map.h"
|
|
|
#include "variables.h"
|
|
|
#include "void_map.h"
|
|
|
#include "tgp.h"
|
|
|
#include "console.h"
|
|
|
#include "genworld.h"
|
|
|
#include "core/alloc_func.hpp"
|
|
|
#include "core/random_func.hpp"
|
|
|
|
|
|
#include "table/strings.h"
|
|
|
|
|
|
/*
|
|
|
*
|
|
|
* Quickie guide to Perlin Noise
|
|
|
* Perlin noise is a predictable pseudo random number sequence. By generating
|
|
|
* it in 2 dimensions, it becomes a useful random map, that for a given seed
|
|
|
* and starting X & Y is entirely predictable. On the face of it, that may not
|