summaryrefslogtreecommitdiff
path: root/public/javascript/game.js
diff options
context:
space:
mode:
Diffstat (limited to 'public/javascript/game.js')
-rw-r--r--public/javascript/game.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/public/javascript/game.js b/public/javascript/game.js
index 57b3eb5..518f08e 100644
--- a/public/javascript/game.js
+++ b/public/javascript/game.js
@@ -746,7 +746,7 @@ Player.prototype.placeOrRemoveTile = function(direction) {
var tempPos = this.getPosInWalkDirection(direction);
var tempTile = getTileBufferValue(tempPos);
if ((tempTile >= blockStartTile && tempTile < blockStartTile + blockTileAmount)
- || (tempTile >= teleporterStartTile && tempTile < teleporterStartTile + teleporterTileAmount)) {
+ || (tempTile >= teleporterStartTile && tempTile < teleporterStartTile + teleporterTileAmount + 1)) {
this.removeTile(direction);
}
if ((tempTile >= flourTile && tempTile <= breadTile)
@@ -1116,6 +1116,9 @@ function drawTileOnContext(context, pos, size, which) {
if (which >= teleporterStartTile && which < teleporterStartTile + teleporterTileAmount) {
drawSpriteOnContext(context, pos, size, which - teleporterStartTile + 18);
}
+ if (which == 0x9b) {
+ drawSpriteOnContext(context, pos, size, which - teleporterStartTile + 18);
+ }
if (which >= symbolStartTile && which < symbolStartTile + symbolTileAmount) {
drawSpriteOnContext(context, pos, size, which - (symbolStartTile - 1) + 80);
}