1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-19 23:30:25 +00:00

rug texture is disabled only if levellines && disable_texture

This commit is contained in:
Zeno Rogue 2020-12-23 23:41:41 +01:00
parent 47c54e8660
commit 782859f93b

View File

@ -1101,7 +1101,7 @@ EX void drawRugScene() {
rug.offset_texture = 0;
rug.tinf = &tinf;
if(disable_texture) rug.tinf = nullptr;
if(levellines && disable_texture) rug.tinf = nullptr;
rug.flags = POLY_TRIANGLES | POLY_FAT | POLY_PRINTABLE | POLY_ALWAYS_IN | POLY_ISSIDE | POLY_SHADE_TEXTURE;
dynamicval<projection_configuration> p(pconf, rconf);
@ -1282,7 +1282,7 @@ EX ld move_on_touch = 1;
EX void actDraw() {
try {
if(!renderonce && !disable_texture) prepareTexture();
if(!renderonce && !(levellines && disable_texture)) prepareTexture();
else if(renderlate) {
renderlate--;
prepareTexture();