diff options
author | x2048 <codeforsmile@gmail.com> | 2022-08-14 20:29:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-14 20:29:20 +0200 |
commit | aa2fdc6ef6300f6b6683f96305bb1d9e63ba8ebb (patch) | |
tree | ba454862e3331b9f14bd722e1b75b2415c643171 /src/client/client.cpp | |
parent | 2690585e992474cc458e274250c14b2a65a6b926 (diff) | |
download | minetest-aa2fdc6ef6300f6b6683f96305bb1d9e63ba8ebb.tar.xz |
Limit force shadow update to urgent blocks (#12692)
Diffstat (limited to 'src/client/client.cpp')
-rw-r--r-- | src/client/client.cpp | 3 |
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 { |