From d74296a6df35bea88fc325950d3b4ee4ebe5a0c5 Mon Sep 17 00:00:00 2001 From: ac-stef Date: Sat, 30 May 2015 12:00:38 +0200 Subject: [PATCH] experimental: allow factors up to 4 for hires textures The performance drop is quite small and can completely be disabled by "hirestextures 0", if needed. May be revoked, if mappers have no use for it. Just assume this feature to stay, if textures emerge, which benefit from factor 4 over factor 2. DOCREF texture --- source/src/texture.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/src/texture.cpp b/source/src/texture.cpp index 5f5b3e32..b15b78c6 100644 --- a/source/src/texture.cpp +++ b/source/src/texture.cpp @@ -489,7 +489,7 @@ void _texture(Slot &s, float *scale, char *name) if(scale) { s.orgscale = *scale; - s.scale = (*scale > 0 && *scale <= 2.0f) ? *scale : 1.0f; + s.scale = (*scale > 0 && *scale <= 4.0f) ? *scale : 1.0f; } } @@ -498,7 +498,7 @@ COMMANDF(texture, "fs", (float *scale, char *name) intret(slots.length()); Slot &s = slots.add(); _texture(s, scale, name); - if(*scale < 0.0f || *scale > 2.0f) conoutf("\f3texture slot #%d \"%s\" error: scale factor %.7g out of range 0..2", slots.length() - 1, name, *scale); + if(*scale < 0.0f || *scale > 4.0f) conoutf("\f3texture slot #%d \"%s\" error: scale factor %.7g out of range 0..4", slots.length() - 1, name, *scale); flagmapconfigchange(); });