diff options
Diffstat (limited to 'src/engine/main.cpp')
| -rw-r--r-- | src/engine/main.cpp | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/src/engine/main.cpp b/src/engine/main.cpp index 968c8e6..d12a38b 100644 --- a/src/engine/main.cpp +++ b/src/engine/main.cpp @@ -177,13 +177,6 @@ void bgquad(float x, float y, float w, float h, float tx = 0, float ty = 0, floa gle::end(); } -#include <sys/stat.h> - -static bool file_does_indeed_exist(const char *name) { - struct stat buffer; - return !stat(name, & buffer); -} - void renderbackground(const char *caption, Texture *mapshot, const char *mapname, const char *mapinfo, bool restore, bool force) { if(!inbetweenframes && !force) return; @@ -196,7 +189,7 @@ void renderbackground(const char *caption, Texture *mapshot, const char *mapname gettextres(w, h); static int lastupdate = -1, lastw = -1, lasth = -1; - static float backgroundu = 0, backgroundv = 0, detailu = 0, detailv = 0; + //~static float backgroundu = 0, backgroundv = 0, detailu = 0, detailv = 0; static int numdecals = 0; static struct decal { float x, y, size; int side; } decals[12]; if((renderedframe && !mainmenu && lastupdate != lastmillis) || lastw != w || lasth != h) @@ -205,10 +198,10 @@ void renderbackground(const char *caption, Texture *mapshot, const char *mapname lastw = w; lasth = h; - backgroundu = rndscale(1); - backgroundv = rndscale(1); - detailu = rndscale(1); - detailv = rndscale(1); + //~backgroundu = rndscale(1); + //~backgroundv = rndscale(1); + //~detailu = rndscale(1); + //~detailv = rndscale(1); numdecals = sizeof(decals)/sizeof(decals[0]); numdecals = numdecals/3 + rnd((numdecals*2)/3 + 1); float maxsize = min(w, h)/16.0f; |
