Skip to content

Commit e86fb2b

Browse files
committed
Removes try/catch on internal generation error
CC: 998f124 #7
1 parent 97883c7 commit e86fb2b

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

lib/mazes/Metroidvania.js

-4
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,6 @@ class Metroidvania{
140140
}
141141

142142
export default function ALGORITHM_METROIDVANIA(tileMap, options={}) {
143-
try{
144143
tileMap.fill(0); // Fill with walls
145144
const maxDimension = Math.max(tileMap.width, tileMap.height);
146145
if(maxDimension <= 5){
@@ -197,7 +196,4 @@ export default function ALGORITHM_METROIDVANIA(tileMap, options={}) {
197196
for(let lcv=0; lcv < tileMap.data.length; lcv++){
198197
tileMap.data[lcv] = flattened[lcv];
199198
}
200-
}catch(ex){
201-
console.log('MV generation error', ex);
202-
}
203199
}

0 commit comments

Comments
 (0)