1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-27 14:37:16 +00:00

walking:: save colors_of_floors

This commit is contained in:
Zeno Rogue 2022-02-26 23:58:59 +01:00
parent 48260b781e
commit 4df17161d7

View File

@ -765,6 +765,12 @@ EX namespace mapstream {
int32_t id = cellids.count(cwt.at) ? cellids[cwt.at] : -1; int32_t id = cellids.count(cwt.at) ? cellids[cwt.at] : -1;
f.write(id); f.write(id);
if(f.vernum >= 0xA90C) {
vector<color_t> v;
for(auto c: walking::colors_of_floors) v.push_back(c);
f.write(v);
}
save_drawing_tool(f); save_drawing_tool(f);
f.write(vid.always3); f.write(vid.always3);
@ -980,6 +986,13 @@ EX namespace mapstream {
savecount = 0; savetime = 0; savecount = 0; savetime = 0;
cheater = 1; cheater = 1;
if(f.vernum >= 0xA90C) {
vector<color_t> v;
f.read(v);
walking::colors_of_floors.clear();
for(auto c: v) walking::colors_of_floors.insert(c);
}
load_drawing_tool(f); load_drawing_tool(f);
dynamicval<bool> a3(vid.always3, vid.always3); dynamicval<bool> a3(vid.always3, vid.always3);