mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-02-02 20:29:17 +00:00
fixed a crash when setting new variations
This commit is contained in:
parent
79a02a0c2e
commit
c1554ce0f2
10
goldberg.cpp
10
goldberg.cpp
@ -698,15 +698,13 @@ EX namespace gp {
|
||||
config = human_representation(xy);
|
||||
auto g = screens;
|
||||
if(xy.first == 0 && xy.second == 0) xy.first = 1;
|
||||
stop_game();
|
||||
param = xy;
|
||||
if(xy.first == 1 && xy.second == 0) {
|
||||
stop_game(); set_variation(eVariation::pure);
|
||||
set_variation(eVariation::pure);
|
||||
}
|
||||
else if(xy.first == 1 && xy.second == 1 && S3 == 3) {
|
||||
stop_game(); set_variation(eVariation::bitruncated);
|
||||
}
|
||||
else {
|
||||
param = xy;
|
||||
stop_game(); set_variation(eVariation::goldberg);
|
||||
set_variation(eVariation::bitruncated);
|
||||
}
|
||||
start_game();
|
||||
screens = g;
|
||||
|
Loading…
Reference in New Issue
Block a user