From 781abac8970cb32df33629de2971ea6fc0e33081 Mon Sep 17 00:00:00 2001 From: Tokeiburu Date: Sat, 7 Dec 2024 16:21:30 -0500 Subject: [PATCH] Some cleanup. --- browedit/components/Gnd.cpp | 11 ----------- browedit/components/Rsw.h | 1 - 2 files changed, 12 deletions(-) diff --git a/browedit/components/Gnd.cpp b/browedit/components/Gnd.cpp index f13ecb0..894595a 100644 --- a/browedit/components/Gnd.cpp +++ b/browedit/components/Gnd.cpp @@ -1555,19 +1555,8 @@ const unsigned int Gnd::Lightmap::hash() const for (int i = 0; i < size; i++) { crc ^= data[i]; crc = crc & 1 ? (crc >> 1) ^ POLY : crc >> 1; - //crc += (data[i] ^ POLY) & 0xff; } return ~crc; - - //const int precision = 8; - //unsigned long crc = 0; - //int size = gnd->lightmapWidth * gnd->lightmapHeight * 4; - //if (size < 4) - // return 0; - //for (int i = 0; i < precision; i++) { - // crc |= (data[i * size / precision] & 0xf) << (i * precision); - //} - //return crc; } diff --git a/browedit/components/Rsw.h b/browedit/components/Rsw.h index 2606314..af485bc 100644 --- a/browedit/components/Rsw.h +++ b/browedit/components/Rsw.h @@ -221,7 +221,6 @@ class RswLight : public Component bool affectShadowMap = false; bool affectLightmap = true; bool enabled = true; - bool quickPreview = true; bool shadowTerrain = true; bool sunMatchRswDirection = true;