1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2026-03-02 03:39:21 +00:00

Multiple improvements, fix saves on underground belts

This commit is contained in:
tobspr
2020-05-18 22:08:33 +02:00
parent 8c42827f4e
commit a60d23da77
17 changed files with 171 additions and 31 deletions

View File

@@ -71,7 +71,7 @@ export const globalConfig = {
debug: {
/* dev:start */
fastGameEnter: true,
// fastGameEnter: true,
noArtificialDelays: true,
// disableSavegameWrite: true,
// showEntityBounds: true,
@@ -88,6 +88,7 @@ export const globalConfig = {
// testClipping: true,
// framePausesBetweenTicks: 40,
// testTranslations: true,
// enableEntityInspector: true,
/* dev:end */
},

View File

@@ -436,6 +436,9 @@ export function formatBigNumber(num, divider = ".") {
if (num < 1000) {
return sign + "" + num;
}
if (num > 10000) {
return Math_floor(num / 1000.0) + "k";
}
let rest = num;
let out = "";
@@ -455,7 +458,7 @@ export function formatBigNumber(num, divider = ".") {
* @param {string=} divider THe divider for numbers like 50,000 (divider=',')
* @returns {string}
*/
export function formatBigNumberFull(num, divider = ",") {
export function formatBigNumberFull(num, divider = T.global.thousandsDivider) {
if (num < 1000) {
return num + "";
}