Warnings fix
This commit is contained in:
parent
037e84d377
commit
174285f298
|
@ -32,6 +32,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
#include "nodedef.h"
|
#include "nodedef.h"
|
||||||
#include "gamedef.h"
|
#include "gamedef.h"
|
||||||
#include "util/directiontables.h"
|
#include "util/directiontables.h"
|
||||||
|
#include "util/mathconstants.h"
|
||||||
#include "rollback_interface.h"
|
#include "rollback_interface.h"
|
||||||
#include "emerge.h"
|
#include "emerge.h"
|
||||||
#include "mapgen_v6.h"
|
#include "mapgen_v6.h"
|
||||||
|
|
|
@ -255,7 +255,7 @@ int MapgenMath::generateTerrain() {
|
||||||
*/
|
*/
|
||||||
for (s16 z = node_min.Z; z <= node_max.Z; z++) {
|
for (s16 z = node_min.Z; z <= node_max.Z; z++) {
|
||||||
for (s16 x = node_min.X; x <= node_max.X; x++, index++) {
|
for (s16 x = node_min.X; x <= node_max.X; x++, index++) {
|
||||||
Biome *biome = bmgr->biomes[biomemap[index]];
|
//Biome *biome = bmgr->biomes[biomemap[index]];
|
||||||
u32 i = vm->m_area.index(x, node_min.Y, z);
|
u32 i = vm->m_area.index(x, node_min.Y, z);
|
||||||
for (s16 y = node_min.Y; y <= node_max.Y; y++) {
|
for (s16 y = node_min.Y; y <= node_max.Y; y++) {
|
||||||
v3f vec = (v3f(x, y, z) - center) * scale ;
|
v3f vec = (v3f(x, y, z) - center) * scale ;
|
||||||
|
|
Loading…
Reference in New Issue