Hi people,
I was converting the tilemap class to typescript and I noticed....that the Original JS code (V.1.2)
they actually have a syntax errors.
let's me show the error :
So this line is a actual bug as you can see via my editor.
getAutotileKind(tileId) % 16 >= 8;
so in BOTH JS and typescript way this code wouldn't just not work at all.
thanks for further answer
EDIT : No I didn't edit the JS file.
EDIT :
way of fixing is simply by changing this line :
Tilemap.isWallSideTile = function(tileId) {
return (this.isTileA3(tileId) || this.isTileA4(tileId)) &&
getAutotileKind(tileId) % 16 >= 8;
};
to this :
I was converting the tilemap class to typescript and I noticed....that the Original JS code (V.1.2)
they actually have a syntax errors.
let's me show the error :
So this line is a actual bug as you can see via my editor.
getAutotileKind(tileId) % 16 >= 8;
so in BOTH JS and typescript way this code wouldn't just not work at all.
thanks for further answer
EDIT : No I didn't edit the JS file.
EDIT :
way of fixing is simply by changing this line :
Tilemap.isWallSideTile = function(tileId) {
return (this.isTileA3(tileId) || this.isTileA4(tileId)) &&
getAutotileKind(tileId) % 16 >= 8;
};
to this :
Code:
Tilemap.isWallSideTile = function(tileId) {
return (this.isTileA3(tileId) || this.isTileA4(tileId)) &&
this.getAutotileKind(tileId) % 16 >= 8;
};