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