mirror of
https://github.com/boxgaming/qbjs.git
synced 2024-09-20 04:24:45 +00:00
Fixed Randomize Timer.
This commit is contained in:
parent
f5fc0c9cd3
commit
574e599046
2 changed files with 4 additions and 2 deletions
2
qb2js.js
2
qb2js.js
|
@ -769,8 +769,8 @@ var ConvertRandomize = null;
|
||||||
if (((QB.func_UCase( (QB.func__Trim( (QB.func_Left( args, 5)))))) == "USING") ) {
|
if (((QB.func_UCase( (QB.func__Trim( (QB.func_Left( args, 5)))))) == "USING") ) {
|
||||||
uusing = "true";
|
uusing = "true";
|
||||||
theseed = (QB.func__Trim( (QB.func_Right( args, (QB.func_Len( args)) - 5))));
|
theseed = (QB.func__Trim( (QB.func_Right( args, (QB.func_Len( args)) - 5))));
|
||||||
theseed = (await func_ConvertExpression( theseed));
|
|
||||||
}
|
}
|
||||||
|
theseed = (await func_ConvertExpression( theseed));
|
||||||
}
|
}
|
||||||
ConvertRandomize = (await func_CallMethod( m)) +"(" + uusing +", " + theseed +")";
|
ConvertRandomize = (await func_CallMethod( m)) +"(" + uusing +", " + theseed +")";
|
||||||
return ConvertRandomize;
|
return ConvertRandomize;
|
||||||
|
|
|
@ -2,6 +2,8 @@ Option _Explicit
|
||||||
$Console:Only
|
$Console:Only
|
||||||
'$ExeIcon:'./../gx/resource/gx.ico'
|
'$ExeIcon:'./../gx/resource/gx.ico'
|
||||||
|
|
||||||
|
' In console after, creating exe, run: qb2js qb2js.bas > ../qb2js.js
|
||||||
|
|
||||||
Const FILE = 1
|
Const FILE = 1
|
||||||
Const TEXT = 2
|
Const TEXT = 2
|
||||||
Const False = 0
|
Const False = 0
|
||||||
|
@ -858,8 +860,8 @@ Function ConvertRandomize$ (m As Method, args As String)
|
||||||
If (UCase$(_Trim$(Left$(args, 5))) = "USING") Then
|
If (UCase$(_Trim$(Left$(args, 5))) = "USING") Then
|
||||||
uusing = "true"
|
uusing = "true"
|
||||||
theseed = _Trim$(Right$(args, Len(args) - 5))
|
theseed = _Trim$(Right$(args, Len(args) - 5))
|
||||||
theseed = ConvertExpression(theseed)
|
|
||||||
End If
|
End If
|
||||||
|
theseed = ConvertExpression(theseed)
|
||||||
End If
|
End If
|
||||||
ConvertRandomize = CallMethod(m) + "(" + uusing + ", " + theseed + ")"
|
ConvertRandomize = CallMethod(m) + "(" + uusing + ", " + theseed + ")"
|
||||||
End Function
|
End Function
|
||||||
|
|
Loading…
Reference in a new issue