1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-11-08 17:53:00 +00:00

Fix leading zeros not being saved to colortables

This commit is contained in:
Joseph C. Sible
2025-08-23 12:59:10 -04:00
parent dae3a00b67
commit 307280b28c

View File

@@ -899,7 +899,7 @@ EX shared_ptr<custom_parameter> param_colortable(colortable& val, const paramete
u->custom_save = [&val] {
bool first = true;
string str;
for(auto v: val) { if(first) first = false; else str += ","; str += itsh(v); }
for(auto v: val) { if(first) first = false; else str += ","; str += itsh6(v); }
return str;
};
u->custom_do_save = [dft, &val] { return val != dft; };