diff options
author | Mattes D <github@xoft.cz> | 2014-06-01 22:35:29 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2014-06-01 22:35:29 +0200 |
commit | cdddb1aeac88d5502da43e238c670da5492d462f (patch) | |
tree | dd3846d0ed9ab98e5b3eb965992bb154e1b203a2 /Tools/AnvilStats/BiomeMap.cpp | |
parent | Generator article now has all biome genertors and most their imgs. (diff) | |
download | cuberite-cdddb1aeac88d5502da43e238c670da5492d462f.tar cuberite-cdddb1aeac88d5502da43e238c670da5492d462f.tar.gz cuberite-cdddb1aeac88d5502da43e238c670da5492d462f.tar.bz2 cuberite-cdddb1aeac88d5502da43e238c670da5492d462f.tar.lz cuberite-cdddb1aeac88d5502da43e238c670da5492d462f.tar.xz cuberite-cdddb1aeac88d5502da43e238c670da5492d462f.tar.zst cuberite-cdddb1aeac88d5502da43e238c670da5492d462f.zip |
Diffstat (limited to 'Tools/AnvilStats/BiomeMap.cpp')
-rw-r--r-- | Tools/AnvilStats/BiomeMap.cpp | 35 |
1 files changed, 2 insertions, 33 deletions
diff --git a/Tools/AnvilStats/BiomeMap.cpp b/Tools/AnvilStats/BiomeMap.cpp index 6505299ba..de8fc4ad7 100644 --- a/Tools/AnvilStats/BiomeMap.cpp +++ b/Tools/AnvilStats/BiomeMap.cpp @@ -5,38 +5,7 @@ #include "Globals.h" #include "BiomeMap.h" - - - - - -static const int g_BiomePalette[] = -{ - // ARGB: - 0xff0000ff, /* Ocean */ - 0xff00cf3f, /* Plains */ - 0xffffff00, /* Desert */ - 0xff7f7f7f, /* Extreme Hills */ - 0xff00cf00, /* Forest */ - 0xff007f3f, /* Taiga */ - 0xff3f7f00, /* Swampland */ - 0xff003fff, /* River */ - 0xff7f0000, /* Hell */ - 0xff007fff, /* Sky */ - 0xff3f3fff, /* Frozen Ocean */ - 0xff3f3fff, /* Frozen River */ - 0xff7fffcf, /* Ice Plains */ - 0xff3fcf7f, /* Ice Mountains */ - 0xffcf00cf, /* Mushroom Island */ - 0xff7f00ff, /* Mushroom Island Shore */ - 0xffffff3f, /* Beach */ - 0xffcfcf00, /* Desert Hills */ - 0xff00cf3f, /* Forest Hills */ - 0xff006f1f, /* Taiga Hills */ - 0xff7f8f7f, /* Extreme Hills Edge */ - 0xff004f00, /* Jungle */ - 0xff003f00, /* Jungle Hills */ -} ; +#include "../BiomeVisualiser/BiomeColors.h" @@ -139,7 +108,7 @@ void cBiomeMap::StartNewRegion(int a_RegionX, int a_RegionZ) unsigned char * BiomeRow = (unsigned char *)m_Biomes + z * 512; for (int x = 0; x < 512; x++) { - RowData[x] = g_BiomePalette[BiomeRow[x]]; + RowData[x] = g_BiomeColors[BiomeRow[x]]; } f.Write(RowData, sizeof(RowData)); } // for z |