summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--js/lost.js11
1 files changed, 8 insertions, 3 deletions
diff --git a/js/lost.js b/js/lost.js
index 022c10b..e2cfda5 100644
--- a/js/lost.js
+++ b/js/lost.js
@@ -829,10 +829,15 @@ function RenderCanvas2D( rMap, params ) // eMazeContainer, eUIContainer )
829 829
830 this.iBorder = 3; 830 this.iBorder = 3;
831 this.iIconSize = Math.floor( 831 this.iIconSize = Math.floor(
832 ((iTargetSize/this.rMap.getSize( 0 ))-3-(this.iIconSquare*3))/this.iIconSquare 832 (
833 (iTargetSize/this.rMap.getSize( 0 )) -
834 3 - (this.iIconSquare*3)
835 )/this.iIconSquare
833 ); 836 );
834 if( this.iIconSize > 15 ) 837 if( this.iIconSize > 15 )
835 this.iIconSize = 15; 838 this.iIconSize = 15;
839 else if( this.iIconSize < 5 )
840 this.iIconSize = 5;
836 841
837 this.iCellSize = 842 this.iCellSize =
838 this.iBorder + 843 this.iBorder +
@@ -1154,10 +1159,10 @@ RenderCanvas2D.prototype.updateReadout = function updateReadout()
1154 if( this.rMap.getDims() <= 2 ) 1159 if( this.rMap.getDims() <= 2 )
1155 return; 1160 return;
1156 1161
1157 let text = 'Floor: ' + this.rMap.pPlayer.get( 2 ); 1162 let text = 'Floor: ' + (this.rMap.pPlayer.get( 2 )+1);
1158 for( let j = 3; j < this.rMap.getDims(); j++ ) 1163 for( let j = 3; j < this.rMap.getDims(); j++ )
1159 { 1164 {
1160 text += ', ' + this.rMap.pPlayer.get( j ) 1165 text += ', ' + (this.rMap.pPlayer.get( j )+1);
1161 } 1166 }
1162 1167
1163 this.readoutNode.textContent = text; 1168 this.readoutNode.textContent = text;