1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-24 17:10:36 +00:00

fixed some warnings in RogueViz

This commit is contained in:
Zeno Rogue 2019-09-13 18:53:19 +02:00
parent 973d8cb451
commit cf0b13b5b2

View File

@ -61,7 +61,7 @@ splitter split(string s) {
if(c == 'd') add(swapped ? s1 : s0, 'b');
if(c == 'a') swapped = !swapped;
}
return {swapped, s0, s1};
return splitter{swapped, s0, s1};
}
splitter split_slow(string s) {
@ -73,7 +73,7 @@ splitter split_slow(string s) {
if(c == 'd') ((swapped ? s1 : s0) += 'b'), ((swapped ? s0 : s1) += '-');
if(c == 'a') swapped = !swapped, s0 += '-', s1 += '-';
}
return {swapped, s0, s1};
return splitter{swapped, s0, s1};
}
string reduce(const string& x) {