From c89b652cf253bf00de0e6029854091b89eefd9fb Mon Sep 17 00:00:00 2001 From: Anton Gladyshev Date: Fri, 30 Oct 2020 09:51:46 +0300 Subject: [PATCH] fix broken map drawing --- index.html | 60 +++++++++++++++++++++++++++--------------------------- 1 file changed, 30 insertions(+), 30 deletions(-) diff --git a/index.html b/index.html index d52b7718..e78cbe8c 100644 --- a/index.html +++ b/index.html @@ -1990,45 +1990,45 @@

How to play

} } } - //ISSUE #339 - game.checkObjAccessibility(); + //ISSUE #339 + //game.checkObjAccessibility();//THIS CODE IS BROKEN! game.mapCreated = 1; composite_gm(); } }, - checkObjAccessibility: function () { - //GLADYSHEV - startPoint = game.myMapObjects[game.castleX][game.castleY+1]; - nonAccessible = false; - //10 castle entrance, 4 - visitableElements = [10]; - pointsToCheck = []; - ci = 0; - for (i=0; iHow to play } } return preparedMap; - }, - genPathMap : function (gen_pfmap) { + }, + genPathMap : function (gen_pfmap) { console.log("call gen path map"); console.log(gen_pfmap); neighbor_offsets = [[0, 1], [1, 0], [0, -1], [-1, 0]];