Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
1d472da3
Commit
1d472da3
authored
4 years ago
by
Deucе
Browse files
Options
Downloads
Patches
Plain Diff
@if still needs the old getsvar() behaviour.
parent
64edca8b
No related branches found
No related tags found
1 merge request
!463
MRC mods by Codefenix (2024-10-20)
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
xtrn/lord2/l2lib.js
+15
-0
15 additions, 0 deletions
xtrn/lord2/l2lib.js
xtrn/lord2/lord2.js
+1
-1
1 addition, 1 deletion
xtrn/lord2/lord2.js
with
16 additions
and
1 deletion
xtrn/lord2/l2lib.js
+
15
−
0
View file @
1d472da3
...
...
@@ -1298,6 +1298,21 @@ function getsvar(args, offset, vname)
return
v
;
}
/*
* Returns a string if variable name is a string, but only takes one arg.
*/
function
getsvar1
(
name
,
vname
)
{
var
v
=
getvar
(
name
);
var
fv
=
getvar
(
vname
);
if
(
typeof
fv
===
'
string
'
)
{
if
(
typeof
v
!==
'
string
'
)
return
replace_vars
(
name
);
}
return
v
;
}
function
expand_ticks
(
str
)
{
if
(
typeof
str
!==
'
string
'
)
...
...
This diff is collapsed.
Click to expand it.
xtrn/lord2/lord2.js
+
1
−
1
View file @
1d472da3
...
...
@@ -1387,7 +1387,7 @@ function insane_run_ref(sec, fname, refret)
tmp
=
getvar
(
args
[
++
tmp2
]).
length
;
}
else
tmp
=
getsvar
(
args
,
tmp2
,
args
[
0
]);
tmp
=
getsvar
1
(
args
,
tmp2
,
args
[
0
]);
tmp2
++
;
if
(
getvar
(
args
[
0
]).
toString
().
toLowerCase
()
===
tmp
.
toString
().
toLowerCase
())
handlers
.
do
(
args
.
slice
(
tmp2
+
1
));
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment