mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-02-03 04:39:17 +00:00
spiral:: fixed the crash when leaving spiral
This commit is contained in:
parent
2eaff9ac46
commit
8c776a29e9
@ -179,9 +179,6 @@ namespace spiral {
|
||||
|
||||
void loop(vector<SDL_Surface*> _band) {
|
||||
|
||||
bool saveGL = vid.usingGL;
|
||||
if(saveGL) { vid.usingGL = false; setvideomode(); }
|
||||
|
||||
band = _band;
|
||||
out = s;
|
||||
precompute();
|
||||
@ -189,6 +186,10 @@ namespace spiral {
|
||||
shiftx = shifty = 0;
|
||||
velx=1; vely=1;
|
||||
bool dosave = false;
|
||||
|
||||
bool saveGL = vid.usingGL;
|
||||
if(saveGL) switchGL(); // { vid.usingGL = false; setvideomode(); }
|
||||
|
||||
while(true) {
|
||||
|
||||
time_t timer;
|
||||
@ -228,7 +229,7 @@ namespace spiral {
|
||||
|
||||
breakloop:
|
||||
quickmap.clear();
|
||||
if(saveGL) { vid.usingGL = true; setvideomode(); }
|
||||
if(saveGL) switchGL(); // { vid.usingGL = true; setvideomode(); }
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user