mirror of
https://git.leinelab.org/Mal/mr-crocs-adventures.git
synced 2025-09-11 02:57:36 +02:00
Tilorswift levels can now be loaded into the running game
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user