Added mapType to BaseGenerator

This commit is contained in:
Kayne Ruse
2014-06-21 18:10:57 +10:00
parent 8afd0e7c8a
commit 3662a97475
13 changed files with 20 additions and 22 deletions
+2 -1
View File
@@ -21,7 +21,8 @@
*/
#include "base_generator.hpp"
BaseGenerator::BaseGenerator() {
BaseGenerator::BaseGenerator(MapType t) {
mapType = t;
for (int i = 0; i < MAP_WIDTH; i++) {
for (int j = 0; j < MAP_HEIGHT; j++) {
chunks[i][j].type = TerrainType::NONE;