fixed rug buggy in web

This commit is contained in:
Zeno Rogue 2019-09-26 13:18:45 +02:00
parent 1215c65e40
commit 128e063e27
1 changed files with 2 additions and 1 deletions

View File

@ -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 {