1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-01-14 11:15:48 +00:00

fixed a crash on projection changing

This commit is contained in:
Zeno Rogue 2023-09-14 09:49:13 +02:00
parent b70b339f52
commit f3d28c9105

View File

@ -1054,10 +1054,12 @@ EX namespace models {
param_i(p.back_and_front, sp+"backandfront", 0); param_i(p.back_and_front, sp+"backandfront", 0);
addsaver(p.alpha, sp+"projection", 1); auto projsaver = addsaver(p.alpha, sp+"projection", 1);
if(&p.model == &pmodel) if(&p.model == &pmodel) {
param_custom(p.alpha, sp+"projection", menuitem_projection_distance, 'p') auto proj = param_custom(p.alpha, sp+"projection", menuitem_projection_distance, 'p');
->help_text = "projection distance|Gans Klein Poincare orthographic stereographic"; proj->help_text = "projection distance|Gans Klein Poincare orthographic stereographic";
proj->saver = projsaver;
}
param_matrix(p.cam(), pp+"cameraangle", 3) param_matrix(p.cam(), pp+"cameraangle", 3)
-> editable(pp+"camera angle", "Rotate the camera. Can be used to obtain a first person perspective, " -> editable(pp+"camera angle", "Rotate the camera. Can be used to obtain a first person perspective, "