mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-24 07:56:59 +00:00
fixed rug buggy in web
This commit is contained in:
parent
1215c65e40
commit
128e063e27
3
rug.cpp
3
rug.cpp
@ -1487,7 +1487,7 @@ EX transmatrix currentrot;
|
||||
EX void reopen() {
|
||||
if(rugged) return;
|
||||
rugdim = 2 * GDIM - 1;
|
||||
when_enabled = ticks;
|
||||
when_enabled = 0;
|
||||
GLERR("before init");
|
||||
glbuf = new renderbuffer(TEXTURESIZE, TEXTURESIZE, vid.usingGL && !rendernogl);
|
||||
if(!glbuf->valid) {
|
||||
@ -1673,6 +1673,7 @@ EX void actDraw() {
|
||||
drawRugScene();
|
||||
|
||||
#if CAP_ORIENTATION
|
||||
if(!when_enabled) ticks = when_enabled;
|
||||
if(ticks < when_enabled + 500)
|
||||
last_orientation = getOrientation();
|
||||
else {
|
||||
|
Loading…
Reference in New Issue
Block a user