summaryrefslogtreecommitdiff
path: root/src/engine/octaedit.cpp
diff options
context:
space:
mode:
authorxolatile2025-08-05 17:04:48 +0200
committerxolatile2025-08-05 17:04:48 +0200
commitaffde05dc07a94643f1fd2751b2b441f57f73d7d (patch)
tree4027d8e3f91490e9cfe6cdb2709343549f047253 /src/engine/octaedit.cpp
parent9234eeb1d2954a3dae6c84ffa8ed8643953272c5 (diff)
downloadxolatile-badassbug-affde05dc07a94643f1fd2751b2b441f57f73d7d.tar.xz
xolatile-badassbug-affde05dc07a94643f1fd2751b2b441f57f73d7d.tar.zst
Minor cleanups, just compiles...
Diffstat (limited to 'src/engine/octaedit.cpp')
-rw-r--r--src/engine/octaedit.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/engine/octaedit.cpp b/src/engine/octaedit.cpp
index af8e9ec..fb37088 100644
--- a/src/engine/octaedit.cpp
+++ b/src/engine/octaedit.cpp
@@ -2522,14 +2522,12 @@ void rendertexturepanel(int w, int h)
{
VSlot &vslot = lookupvslot(texmru[ti]), *layer = NULL;
Slot &slot = *vslot.slot;
- Texture *tex = slot.sts.empty() ? notexture : slot.sts[0].t, *layertex = NULL;
+ Texture *tex = slot.sts.empty() ? notexture : slot.sts[0].t;
if(vslot.layer)
{
layer = &lookupvslot(vslot.layer);
- layertex = layer->slot->sts.empty() ? notexture : layer->slot->sts[0].t;
}
float sx = min(1.0f, tex->xs/(float)tex->ys), sy = min(1.0f, tex->ys/(float)tex->xs);
- int x = w*1800/h-s-50, r = s;
vec2 tc[4] = { vec2(0, 0), vec2(1, 0), vec2(1, 1), vec2(0, 1) };
float xoff = vslot.offset.x, yoff = vslot.offset.y;
if(vslot.rotation)