1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-30 15:39:54 +00:00

creature_scale saved to modedata

This commit is contained in:
Zeno Rogue 2024-03-24 00:41:36 +01:00
parent d43b19625e
commit dee90f8d7c

View File

@ -1008,6 +1008,10 @@ EX void save_mode_data(hstream& f) {
f.write<char>(6);
f.write<int>(landscape_div);
}
if(shmup::on && vid.creature_scale != 1) {
f.write<char>(7);
f.write<ld>(vid.creature_scale);
}
}
EX void load_mode_data_with_zero(hstream& f) {
@ -1028,6 +1032,7 @@ EX void load_mode_data_with_zero(hstream& f) {
xcheat = f.get<char>();
casual = false;
bow::weapon = bow::wBlade;
vid.creature_scale = 1;
while(true) {
char option = f.get<char>();
@ -1070,6 +1075,9 @@ EX void load_mode_data_with_zero(hstream& f) {
landscape_div = f.get<int>();
break;
case 7:
vid.creature_scale = f.get<ld>();
default:
throw hstream_exception();
}