From 757096e7df15c14b9b10352fa91663483f9e34f8 Mon Sep 17 00:00:00 2001 From: xolatile Date: Sun, 10 Aug 2025 00:19:46 +0200 Subject: all --- src/engine/octaedit.cpp | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'src/engine/octaedit.cpp') diff --git a/src/engine/octaedit.cpp b/src/engine/octaedit.cpp index 80e2b03..61d8917 100644 --- a/src/engine/octaedit.cpp +++ b/src/engine/octaedit.cpp @@ -291,7 +291,7 @@ bool editmoveplane(const vec &o, const vec &ray, int d, float off, vec &handle, extern void entdrag(const vec &ray); extern bool hoveringonent(int ent, int orient); -extern void renderentselection(const vec &o, bool entmoving); +extern void renderentselection(bool entmoving); extern float rayent(const vec &o, const vec &ray, float radius, int mode, int size, int &orient, int &ent); VAR(gridlookup, 0, 0, 1); @@ -411,7 +411,7 @@ void rendereditcursor() { glBlendFunc(GL_ONE, GL_ONE); // cursors notextureshader->set(); - renderentselection(player->o, entmoving!=0); + renderentselection(entmoving!=0); boxoutline = outline!=0; enablepolygonoffset(GL_POLYGON_OFFSET_LINE); if(!moving && !hovering && !hidecursor) { @@ -537,14 +537,6 @@ void selgridmap(selinfo &sel, uchar *g) { // generates a map of the cube VARP(nompedit, 0, 1, 1); -static inline int countblock(cube *c, int n = 8) { - int r = 0; - loopi(n) if(c[i].children) r += countblock(c[i].children); else ++r; - return r; -} - -static int countblock(block3 *b) { return countblock(b->c(), b->size()); } - vector editinfos; editinfo *localedit = NULL; -- cgit v1.2.3