mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-14 18:15:28 -04:00
Fix if rain/snow is on, you're standing outside the map in the border bit between bedrock and water, and you look inside the map to under water blocks, rain/snow appears to be missing above the water.
You could still see the rain particles on top of the water though.
This commit is contained in:
parent
d7040b5327
commit
40bdedd2d9
@ -89,7 +89,7 @@ static void MapRenderer_CheckWeather(double delta) {
|
||||
IVec3_Floor(&pos, &Camera.CurrentPos);
|
||||
|
||||
block = World_SafeGetBlock_3I(pos);
|
||||
outside = pos.Y < 0 || World_ContainsXZ(pos.X, pos.Z);
|
||||
outside = pos.Y < 0 || !World_ContainsXZ(pos.X, pos.Z);
|
||||
inTranslucent = Blocks.Draw[block] == DRAW_TRANSLUCENT || (pos.Y < Env.EdgeHeight && outside);
|
||||
|
||||
/* If we are under water, render weather before to blend properly */
|
||||
|
@ -690,7 +690,7 @@ void TexturePack_ExtractZip_File(const String* filename) {
|
||||
if (res) { Logger_Warn2(res, "closing", &path); }
|
||||
|
||||
#ifdef CC_BUILD_WEB
|
||||
Platform_SetDefaultCurrentDirectory();
|
||||
Platform_SetDefaultCurrentDirectory(0, NULL);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user