mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-11-25 13:35:12 +00:00
Update mod_storage.cpp
This commit is contained in:
parent
d9512a392a
commit
4a971580ea
1 changed files with 1 additions and 1 deletions
|
@ -96,7 +96,7 @@ C_FIELD bool mod_storage_save_number(const char* key, f32 value) {
|
||||||
// this assumes mod_storage_load will only ever be called by Lua
|
// this assumes mod_storage_load will only ever be called by Lua
|
||||||
static char str[MAX_KEY_VALUE_LENGTH];
|
static char str[MAX_KEY_VALUE_LENGTH];
|
||||||
if (floor(value) == value) {
|
if (floor(value) == value) {
|
||||||
snprintf(str, MAX_KEY_VALUE_LENGTH, "%d", (s64)value);
|
snprintf(str, MAX_KEY_VALUE_LENGTH, "%lld", (s64)value);
|
||||||
} else {
|
} else {
|
||||||
snprintf(str, MAX_KEY_VALUE_LENGTH, "%f", value);
|
snprintf(str, MAX_KEY_VALUE_LENGTH, "%f", value);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue