mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-09-27 21:58:13 +00:00
rug texture is disabled only if levellines && disable_texture
This commit is contained in:
parent
47c54e8660
commit
782859f93b
4
rug.cpp
4
rug.cpp
@ -1101,7 +1101,7 @@ EX void drawRugScene() {
|
|||||||
|
|
||||||
rug.offset_texture = 0;
|
rug.offset_texture = 0;
|
||||||
rug.tinf = &tinf;
|
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;
|
rug.flags = POLY_TRIANGLES | POLY_FAT | POLY_PRINTABLE | POLY_ALWAYS_IN | POLY_ISSIDE | POLY_SHADE_TEXTURE;
|
||||||
|
|
||||||
dynamicval<projection_configuration> p(pconf, rconf);
|
dynamicval<projection_configuration> p(pconf, rconf);
|
||||||
@ -1282,7 +1282,7 @@ EX ld move_on_touch = 1;
|
|||||||
EX void actDraw() {
|
EX void actDraw() {
|
||||||
try {
|
try {
|
||||||
|
|
||||||
if(!renderonce && !disable_texture) prepareTexture();
|
if(!renderonce && !(levellines && disable_texture)) prepareTexture();
|
||||||
else if(renderlate) {
|
else if(renderlate) {
|
||||||
renderlate--;
|
renderlate--;
|
||||||
prepareTexture();
|
prepareTexture();
|
||||||
|
Loading…
Reference in New Issue
Block a user