Skip to content

Commit baad312

Browse files
committed
🐛 bug fix
1 parent 3e22709 commit baad312

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

helper/scoreSheetPDFMaze2-2022.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,7 @@ function drawRun(doc, config, scoringRun) {
219219
};
220220
for (let j = 1, l = scoringRun.map.length * 2 + 1; j < l; j += 2) {
221221
for (let i = 1, m = scoringRun.map.width * 2 + 1; i < m; i += 2) {
222+
if (!cells[`${i},${j},0`]) continue
222223
const victimLF = cells[`${i},${j},0`].isLinear ? 'linear' : 'floating';
223224
const { victims } = cells[`${i},${j},0`].tile;
224225
const { tile } = cells[`${i},${j},0`];

public/javascripts/maze_input.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ app.controller('ddController', ['$scope', '$uibModal', '$log', '$timeout', '$htt
144144

145145
for(let j=1,l=map.length*2+1;j<l;j+=2) {
146146
for (let i = 1, m = map.width * 2 + 1; i < m; i += 2) {
147+
if (!cells[`${i},${j},0`]) continue
147148
let victimLF = cells[i+','+j+',0'].isLinear?"linear":"floating";
148149
let victims = cells[i+','+j+',0'].tile.victims;
149150
let tile = cells[i+','+j+',0'].tile;

views/maze_input.pug

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,14 +138,14 @@ html(ng-app="ddApp")
138138
tr
139139
td Type
140140
td(style="width:30%;")
141-
tr
142-
td LoPs
143-
td
144-
input.form-control(type='number', placeholder='', min='0', ng-model='LoPs', ng-focus="focused('LoPs')", ng-blur="blured('LoPs')")
145141
tr
146142
td Misidentifications
147143
td
148144
input.form-control(type='number', placeholder='', min='0', ng-model='MisIdent', ng-focus="focused('MisIdent')", ng-blur="blured('MisIdent')")
145+
tr
146+
td LoPs
147+
td
148+
input.form-control(type='number', placeholder='', min='0', ng-model='LoPs', ng-focus="focused('LoPs')", ng-blur="blured('LoPs')")
149149
tr
150150
td Time
151151
td

0 commit comments

Comments
 (0)