Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
- (3d.js:377) wrong function assigned for 反転 button
- (control.js:57) function for key AllowLeft flipped
  • Loading branch information
boletales committed Dec 22, 2023
1 parent 67ecd3d commit 988af2b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion server/docs/3d.js
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ function draw(layout){

document.getElementById("notchplus").onclick = ()=> L.onkey({key: L.keycontrols.signal.keys.notchPlus.key[0] }, {trainid: L.selectedTrain});
document.getElementById("notchminus").onclick = ()=> L.onkey({key: L.keycontrols.signal.keys.notchMinus.key[0] }, {trainid: L.selectedTrain});
document.getElementById("reverse").onclick = ()=> L.onkey({key: L.keycontrols.signal.keys.notchMinus.key[0] }, {trainid: L.selectedTrain});
document.getElementById("reverse").onclick = ()=> L.onkey({key: L.keycontrols.signal.keys.flipTrainS.key[0] }, {trainid: L.selectedTrain});
document.getElementById("trainnote").oninput = ()=> L.onkey({key: L.keycontrols.signal.keys.editTrainNoteS.key[0]}, {trainid: L.selectedTrain, note: document.getElementById("trainnote").value});
document.getElementById("traintags").oninput = ()=> L.onkey({key: L.keycontrols.signal.keys.setTrainTagsS.key[0] }, {trainid: L.selectedTrain, tags: document.getElementById("traintags").value});
document.getElementById("applyrule").onclick = ()=> L.onkey({key: L.keycontrols.signal.keys.resetSignalRulePhaseS.key[0] }, {trainid: L.selectedTrain});
Expand Down
2 changes: 1 addition & 1 deletion server/docs/control.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class Layout {
, key : ["ArrowRight"]
},
selectLeft: {
onkey: ()=>{this.selectJoint(-1);}
onkey: ()=>{this.selectJoint(1);}
, text_ja: "左の接合点を選択"
, softkey: "←"
, key : ["ArrowLeft"]
Expand Down
2 changes: 1 addition & 1 deletion server/docs/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -2531,7 +2531,7 @@ var layoutDrawInfo = (v) => ({
var trainsetLength = (v) => toNumber(v.types.length) * 0.5140186915887851 - 0.04672897196261683;
var brakePattern = (speed) => (finalspeed) => {
const t = (speed - finalspeed) / 0.6;
return 0.3 + max2(0)(finalspeed * t + 0.3 * t * t);
return 0.2 + max2(0)(finalspeed * t + 0.3 * t * t);
};
var brakePatternDist = (speed) => (signaldata) => (tags) => {
const restriction = (() => {
Expand Down

0 comments on commit 988af2b

Please sign in to comment.