Tilorswift levels can now be loaded into the running game

This commit is contained in:
Mal
2023-09-17 14:18:21 +02:00
parent 8f087d3dd3
commit 593d323aff
11 changed files with 348 additions and 204 deletions

View File

@@ -44,15 +44,15 @@ export default class UrlParam
getInt(name)
{
let value = parseInt(this.get(name));
const value = parseInt(this.get(name));
return isNaN(value) ? undefined : value;
return isNaN(value) ? 0 : value;
}
getFloat(name)
{
let value = parseFloat(this.get(name));
const value = parseFloat(this.get(name));
return isNaN(value) ? undefined : value;
return isNaN(value) ? 0.0 : value;
}
}
}