aboutsummaryrefslogtreecommitdiff
path: root/src/client/client.cpp
diff options
context:
space:
mode:
authorx2048 <codeforsmile@gmail.com>2022-08-14 20:29:20 +0200
committerGitHub <noreply@github.com>2022-08-14 20:29:20 +0200
commitaa2fdc6ef6300f6b6683f96305bb1d9e63ba8ebb (patch)
treeba454862e3331b9f14bd722e1b75b2415c643171 /src/client/client.cpp
parent2690585e992474cc458e274250c14b2a65a6b926 (diff)
downloadminetest-aa2fdc6ef6300f6b6683f96305bb1d9e63ba8ebb.tar.xz
Limit force shadow update to urgent blocks (#12692)
Diffstat (limited to 'src/client/client.cpp')
-rw-r--r--src/client/client.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/client.cpp b/src/client/client.cpp
index 31bbf2463..b7d1cbfe0 100644
--- a/src/client/client.cpp
+++ b/src/client/client.cpp
@@ -574,7 +574,8 @@ void Client::step(float dtime)
else {
// Replace with the new mesh
block->mesh = r.mesh;
- force_update_shadows = true;
+ if (r.urgent)
+ force_update_shadows = true;
}
}
} else {