mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-27 14:37:16 +00:00
creature_scale saved to modedata
This commit is contained in:
parent
d43b19625e
commit
dee90f8d7c
@ -1008,6 +1008,10 @@ EX void save_mode_data(hstream& f) {
|
|||||||
f.write<char>(6);
|
f.write<char>(6);
|
||||||
f.write<int>(landscape_div);
|
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) {
|
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>();
|
xcheat = f.get<char>();
|
||||||
casual = false;
|
casual = false;
|
||||||
bow::weapon = bow::wBlade;
|
bow::weapon = bow::wBlade;
|
||||||
|
vid.creature_scale = 1;
|
||||||
|
|
||||||
while(true) {
|
while(true) {
|
||||||
char option = f.get<char>();
|
char option = f.get<char>();
|
||||||
@ -1070,6 +1075,9 @@ EX void load_mode_data_with_zero(hstream& f) {
|
|||||||
landscape_div = f.get<int>();
|
landscape_div = f.get<int>();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case 7:
|
||||||
|
vid.creature_scale = f.get<ld>();
|
||||||
|
|
||||||
default:
|
default:
|
||||||
throw hstream_exception();
|
throw hstream_exception();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user