Skip to content

Commit

Permalink
Some cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tokeiburu committed Dec 7, 2024
1 parent 35a8faf commit 781abac
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
11 changes: 0 additions & 11 deletions browedit/components/Gnd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}


Expand Down
1 change: 0 additions & 1 deletion browedit/components/Rsw.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 781abac

Please sign in to comment.