mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-07-01 11:53:32 +00:00
Standardise fixed-width integer usage in touched files
This commit is contained in:
@@ -57,7 +57,7 @@ C4JThread* GameRenderer::m_updateThread;
|
||||
C4JThread::EventArray* GameRenderer::m_updateEvents;
|
||||
bool GameRenderer::nearThingsToDo = false;
|
||||
bool GameRenderer::updateRunning = false;
|
||||
std::vector<uint8_t *> GameRenderer::m_deleteStackByte;
|
||||
std::vector<std::uint8_t *> GameRenderer::m_deleteStackByte;
|
||||
std::vector<SparseLightStorage *> GameRenderer::m_deleteStackSparseLightStorage;
|
||||
std::vector<CompressedTileStorage *> GameRenderer::m_deleteStackCompressedTileStorage;
|
||||
std::vector<SparseDataStorage *> GameRenderer::m_deleteStackSparseDataStorage;
|
||||
@@ -1129,7 +1129,7 @@ void GameRenderer::renderLevel(float a)
|
||||
|
||||
#ifdef MULTITHREAD_ENABLE
|
||||
// Request that an item be deleted, when it is safe to do so
|
||||
void GameRenderer::AddForDelete(uint8_t *deleteThis)
|
||||
void GameRenderer::AddForDelete(std::uint8_t *deleteThis)
|
||||
{
|
||||
EnterCriticalSection(&m_csDeleteStack);
|
||||
m_deleteStackByte.push_back(deleteThis);
|
||||
@@ -1892,9 +1892,9 @@ void GameRenderer::setupClearColor(float a)
|
||||
{
|
||||
|
||||
unsigned int colour = Minecraft::GetInstance()->getColourTable()->getColor( eMinecraftColour_Under_Water_Clear_Colour );
|
||||
uint8_t redComponent = ((colour>>16)&0xFF);
|
||||
uint8_t greenComponent = ((colour>>8)&0xFF);
|
||||
uint8_t blueComponent = ((colour)&0xFF);
|
||||
std::uint8_t redComponent = ((colour>>16)&0xFF);
|
||||
std::uint8_t greenComponent = ((colour>>8)&0xFF);
|
||||
std::uint8_t blueComponent = ((colour)&0xFF);
|
||||
|
||||
fr = (float)redComponent/256;//0.02f;
|
||||
fg = (float)greenComponent/256;//0.02f;
|
||||
@@ -1904,9 +1904,9 @@ void GameRenderer::setupClearColor(float a)
|
||||
{
|
||||
|
||||
unsigned int colour = Minecraft::GetInstance()->getColourTable()->getColor( eMinecraftColour_Under_Lava_Clear_Colour );
|
||||
uint8_t redComponent = ((colour>>16)&0xFF);
|
||||
uint8_t greenComponent = ((colour>>8)&0xFF);
|
||||
uint8_t blueComponent = ((colour)&0xFF);
|
||||
std::uint8_t redComponent = ((colour>>16)&0xFF);
|
||||
std::uint8_t greenComponent = ((colour>>8)&0xFF);
|
||||
std::uint8_t blueComponent = ((colour)&0xFF);
|
||||
|
||||
fr = (float)redComponent/256;//0.6f;
|
||||
fg = (float)greenComponent/256;//0.1f;
|
||||
@@ -2048,9 +2048,9 @@ void GameRenderer::setupFog(int i, float alpha)
|
||||
glFogf(GL_FOG_DENSITY, 0.1f); // was 0.06
|
||||
|
||||
unsigned int colour = Minecraft::GetInstance()->getColourTable()->getColor( eMinecraftColour_In_Cloud_Fog_Colour );
|
||||
uint8_t redComponent = ((colour>>16)&0xFF);
|
||||
uint8_t greenComponent = ((colour>>8)&0xFF);
|
||||
uint8_t blueComponent = ((colour)&0xFF);
|
||||
std::uint8_t redComponent = ((colour>>16)&0xFF);
|
||||
std::uint8_t greenComponent = ((colour>>8)&0xFF);
|
||||
std::uint8_t blueComponent = ((colour)&0xFF);
|
||||
|
||||
float rr = (float)redComponent/256;//1.0f;
|
||||
float gg = (float)greenComponent/256;//1.0f;
|
||||
@@ -2080,9 +2080,9 @@ void GameRenderer::setupFog(int i, float alpha)
|
||||
}
|
||||
|
||||
unsigned int colour = Minecraft::GetInstance()->getColourTable()->getColor( eMinecraftColour_Under_Water_Fog_Colour );
|
||||
uint8_t redComponent = ((colour>>16)&0xFF);
|
||||
uint8_t greenComponent = ((colour>>8)&0xFF);
|
||||
uint8_t blueComponent = ((colour)&0xFF);
|
||||
std::uint8_t redComponent = ((colour>>16)&0xFF);
|
||||
std::uint8_t greenComponent = ((colour>>8)&0xFF);
|
||||
std::uint8_t blueComponent = ((colour)&0xFF);
|
||||
|
||||
float rr = (float)redComponent/256;//0.4f;
|
||||
float gg = (float)greenComponent/256;//0.4f;
|
||||
@@ -2105,9 +2105,9 @@ void GameRenderer::setupFog(int i, float alpha)
|
||||
glFogf(GL_FOG_DENSITY, 2.0f); // was 0.06
|
||||
|
||||
unsigned int colour = Minecraft::GetInstance()->getColourTable()->getColor( eMinecraftColour_Under_Lava_Fog_Colour );
|
||||
uint8_t redComponent = ((colour>>16)&0xFF);
|
||||
uint8_t greenComponent = ((colour>>8)&0xFF);
|
||||
uint8_t blueComponent = ((colour)&0xFF);
|
||||
std::uint8_t redComponent = ((colour>>16)&0xFF);
|
||||
std::uint8_t greenComponent = ((colour>>8)&0xFF);
|
||||
std::uint8_t blueComponent = ((colour)&0xFF);
|
||||
|
||||
float rr = (float)redComponent/256;//0.4f;
|
||||
float gg = (float)greenComponent/256;//0.3f;
|
||||
|
||||
Reference in New Issue
Block a user