convert all indents to tabs
This commit is contained in:
@@ -1 +0,0 @@
|
||||
.vscode/
|
||||
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"editor.tabSize": 2,
|
||||
"editor.insertSpaces": false,
|
||||
"editor.detectIndentation": false
|
||||
}
|
||||
+6
-13
@@ -41,12 +41,9 @@ function randomBool(probability) {
|
||||
|
||||
|
||||
function clampNearest(n, mul) {
|
||||
if(n > 0)
|
||||
return Math.ceil(n / mul) * mul
|
||||
else if( n < 0)
|
||||
return Math.floor(n / mul) * mul
|
||||
else
|
||||
return 0
|
||||
if (n > 0) { return Math.ceil(n / mul) * mul }
|
||||
else if (n < 0) { return Math.floor(n / mul) * mul }
|
||||
else { return 0 }
|
||||
}
|
||||
|
||||
|
||||
@@ -57,13 +54,7 @@ function lerp(x, y, t) {
|
||||
|
||||
function debugPrint(title, value) {
|
||||
if (!title) {
|
||||
console.error(
|
||||
`error[A0000]: this function takes 1 argument but 0 arguments were supplied
|
||||
--> unknown:0:0
|
||||
|
|
||||
0 | debugPrint()
|
||||
| ^^^^^^^^^^-- argument #1 of type \`Any\` is missing`
|
||||
)
|
||||
console.error("debugPrint() takes 2 arguments")
|
||||
return
|
||||
}
|
||||
|
||||
@@ -75,6 +66,7 @@ function debugPrint(title, value) {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function toggleGrid(offX = 0, offY = 0) {
|
||||
if (gridVisible) {
|
||||
document.getElementById("gridCanvas").remove()
|
||||
@@ -146,6 +138,7 @@ function setVh() {
|
||||
document.documentElement.style.setProperty("--vh", window.innerHeight * 0.01 + "px")
|
||||
}
|
||||
|
||||
|
||||
function getEngine() {
|
||||
if ("MozAppearance" in document.documentElement.style)
|
||||
{ return "gecko" }
|
||||
|
||||
@@ -38,7 +38,6 @@
|
||||
|
||||
<div id="loadingScreen"></div>
|
||||
|
||||
|
||||
<!-- global -->
|
||||
<script src="/global/globalScript.js"></script>
|
||||
<script src="/global/pxDensity.js"></script>
|
||||
|
||||
Reference in New Issue
Block a user