Skip to content

Commit

Permalink
Fix error in way_list in CH3 Step 9
Browse files Browse the repository at this point in the history
  • Loading branch information
simustyt committed May 22, 2024
1 parent 2a9b858 commit 27b2d9a
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions pak128.prototype/scenario/tutorial/class/class_chapter_03.nut
Original file line number Diff line number Diff line change
Expand Up @@ -504,17 +504,17 @@ class tutorial.chapter_03 extends basic_chapter

case 9:

local way_list = ""
if (pot0==0){
local way_list = ""
text = ttextfile("chapter_03/09_1-2.txt")
text.tx = ttext("<em>[1/2]</em>")
local w_nr = 0
for(local j=0;j<c_way_lim1.len();j++){
local c_a = c_way_lim1[j].a
local c_b = c_way_lim1[j].b
for(local j=0;j<c_way_list1.len();j++){
local c_a = c_way_list1[j].a
local c_b = c_way_list1[j].b
if (glsw[j]==0){
local link1 = "<a href=\"("+c_a.x+","+c_a.y+")\">("+c_a.tostring()+")</a>"
local link2 = " --> <a href=\"("+c_b.x+","+c_b.y+")\">("+c_b.tostring()+")</a><br>"
local link1 = c_a.href("("+c_a.tostring()+")")
local link2 = " --> "+c_b.href("("+c_b.tostring()+")")
way_list += ttext("<st>" + format("--> [%d]</st> %s", j+1, link1 + link2))
w_nr = j
break
Expand All @@ -526,8 +526,8 @@ class tutorial.chapter_03 extends basic_chapter
}
}
text.list = way_list
text.w2 = c_way_lim1[w_nr].a.href("("+c_way_lim1[w_nr].a.tostring()+")")
text.w1 = c_way_lim1[w_nr].b.href("("+c_way_lim1[w_nr].b.tostring()+")")
text.w2 = c_way_list1[w_nr].a.href("("+c_way_list1[w_nr].a.tostring()+")")
text.w1 = c_way_list1[w_nr].b.href("("+c_way_list1[w_nr].b.tostring()+")")
}

else if (pot1==0){
Expand Down

0 comments on commit 27b2d9a

Please sign in to comment.