Skip to content
This repository was archived by the owner on Dec 5, 2020. It is now read-only.

Commit 4394293

Browse files
committed
Fixed non declared variables and an issue in the script
1 parent 760138c commit 4394293

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

js/mapgen-methods.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ MapGen.prototype.createMap=function(xLength, yLength, passes, cleanLevel, wallPe
2222
if(sameSubCellPercent===undefined){sameSubCellPercent=this.sameSubCellPercent}
2323

2424
// Buildable cell types:
25-
alternateCellTypes=this._getBuildableTypes(true);
26-
allCellTypes=this._getBuildableTypes(false);
25+
var alternateCellTypes=this._getBuildableTypes(true);
26+
var allCellTypes=this._getBuildableTypes(false);
2727

2828
/*
2929
First pass
@@ -211,7 +211,7 @@ MapGen.prototype.createMapFromSample=function(sample){
211211

212212
MapGen.prototype.addItems=function(itemsToCreate, avoidDeadlyAreas){
213213
//List cells
214-
cells=this._getWalkableCells(avoidDeadlyAreas);
214+
var cells=this._getWalkableCells(avoidDeadlyAreas);
215215
// placing items
216216
for(let i in itemsToCreate){
217217
do{

js_concatenator.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,7 @@
99
#bash_version :4.3.42(1)-release
1010
#============================================================================
1111
# As long as I don't get the JS builder around, i'll do this...
12+
echo '' > build.js
1213
cat js/mapgen.js js/mapgen-objects.js js/mapgen-privates.js js/mapgen-methods.js >> build.js
14+
echo '' > build-demo.js
1315
cat js/demo_base_objects.js js/demo_room_samples.js >>build-demo.js

0 commit comments

Comments
 (0)