mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-08-30 17:27:57 +00:00
Merge pull request #432 from josephcsible/colortable-save-leading-zeros
Fix leading zeros not being saved to colortables
This commit is contained in:
@@ -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; };
|
||||
|
Reference in New Issue
Block a user