Skip to content

Commit

Permalink
Fix minor bridge build error (CH3)
Browse files Browse the repository at this point in the history
  • Loading branch information
simustyt committed Jun 2, 2024
1 parent 58bca3d commit 78d9846
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions pak128.prototype/scenario/tutorial/class/class_chapter_03.nut
Original file line number Diff line number Diff line change
Expand Up @@ -1535,7 +1535,7 @@ class tutorial.chapter_03 extends basic_chapter
else if(tool_id==tool_build_way)
return translate("Connect the Track here")+" ("+r_way.c.tostring()+")."
}
//Construye Pediente recta
//Construye Pendiente recta
if (pot0==1 && pot1==0){
if ((pos.x==slope1.c.x)&&(pos.y==slope1.c.y)){
if (tool_id==4100){
Expand Down Expand Up @@ -1575,6 +1575,8 @@ class tutorial.chapter_03 extends basic_chapter
//Segundo tramo de rieles
if (pot3==1&&pot4==0){
if (pos.x>=st2_way_lim.a.x && pos.y>=st2_way_lim.a.y && pos.x<=st2_way_lim.b.x && pos.y<=st2_way_lim.b.y){
if(tool_id==tool_build_bridge)
return result
return all_control(result, gl_wt, way, ribi, tool_id, pos, r_way.c)
}
if (pos.x>=bord2_lim.a.x && pos.y>=bord2_lim.a.y && pos.x<=bord2_lim.b.x && pos.y<=bord2_lim.b.y){
Expand Down Expand Up @@ -1713,17 +1715,16 @@ class tutorial.chapter_03 extends basic_chapter
//Segundo tramo de rieles
if (pot1==1&&pot2==0){
if (pos.x>=st4_way_lim.a.x && pos.y>=st4_way_lim.a.y && pos.x<=st4_way_lim.b.x && pos.y<=st4_way_lim.b.y){

return all_control(result, gl_wt, way, ribi, tool_id, pos, r_way.c)

if(tool_id==tool_build_bridge)
return result
return all_control(result, gl_wt, way, ribi, tool_id, pos, r_way.c)
}
if (pos.x>=bord4_lim.a.x && pos.y>=bord4_lim.a.y && pos.x<=bord4_lim.b.x && pos.y<=bord4_lim.b.y){
if (!way && label && label.get_text()=="X"){
return translate("Indicates the limits for using construction tools")+" ("+pos.tostring()+")."
}
return all_control(result, gl_wt, way, ribi, tool_id, pos, r_way.c)
}

else if(tool_id==tool_build_way)
return translate("Connect the Track here")+" ("+r_way.c.tostring()+")."
}
Expand Down

0 comments on commit 78d9846

Please sign in to comment.