aboutsummaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
authorShadowNinja <shadowninja@minetest.net>2021-12-01 18:54:12 -0500
committerrubenwardy <rw@rubenwardy.com>2022-04-08 14:55:21 +0100
commit7993909fabce4f796ca67b5a8139936667de25df (patch)
tree2ff9368e3e370ac00e2ae9d17a08ec68b3e426d1 /src/client
parent88b21a72f18db6a94e58a8047c4dec6160327e73 (diff)
downloadminetest-7993909fabce4f796ca67b5a8139936667de25df.tar.gz
minetest-7993909fabce4f796ca67b5a8139936667de25df.tar.bz2
minetest-7993909fabce4f796ca67b5a8139936667de25df.zip
Spacing fixes
Diffstat (limited to 'src/client')
-rw-r--r--src/client/CMakeLists.txt4
-rw-r--r--src/client/clientmap.cpp4
-rw-r--r--src/client/imagefilters.cpp2
-rw-r--r--src/client/render/core.cpp2
4 files changed, 6 insertions, 6 deletions
diff --git a/src/client/CMakeLists.txt b/src/client/CMakeLists.txt
index 8d058852a..656ad45ce 100644
--- a/src/client/CMakeLists.txt
+++ b/src/client/CMakeLists.txt
@@ -60,7 +60,7 @@ set(client_SRCS
${CMAKE_CURRENT_SOURCE_DIR}/wieldmesh.cpp
${CMAKE_CURRENT_SOURCE_DIR}/shadows/dynamicshadows.cpp
${CMAKE_CURRENT_SOURCE_DIR}/shadows/dynamicshadowsrender.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/shadows/shadowsshadercallbacks.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/shadows/shadowsScreenQuad.cpp
+ ${CMAKE_CURRENT_SOURCE_DIR}/shadows/shadowsshadercallbacks.cpp
+ ${CMAKE_CURRENT_SOURCE_DIR}/shadows/shadowsScreenQuad.cpp
PARENT_SCOPE
)
diff --git a/src/client/clientmap.cpp b/src/client/clientmap.cpp
index 99ff0aefb..10967c0cb 100644
--- a/src/client/clientmap.cpp
+++ b/src/client/clientmap.cpp
@@ -847,12 +847,12 @@ void ClientMap::renderMapShadows(video::IVideoDriver *driver,
vertex_count += buf->getIndexCount();
}
- // restore the driver material state
+ // restore the driver material state
video::SMaterial clean;
clean.BlendOperation = video::EBO_ADD;
driver->setMaterial(clean); // reset material to defaults
driver->draw3DLine(v3f(), v3f(), video::SColor(0));
-
+
g_profiler->avg(prefix + "draw meshes [ms]", draw.stop(true));
g_profiler->avg(prefix + "vertices drawn [#]", vertex_count);
g_profiler->avg(prefix + "drawcalls [#]", drawcall_count);
diff --git a/src/client/imagefilters.cpp b/src/client/imagefilters.cpp
index b62e336f7..c9d1504ad 100644
--- a/src/client/imagefilters.cpp
+++ b/src/client/imagefilters.cpp
@@ -124,7 +124,7 @@ void imageCleanTransparent(video::IImage *src, u32 threshold)
// Ignore pixels we haven't processed
if (!bitmap.get(sx, sy))
continue;
-
+
// Add RGB values weighted by alpha IF the pixel is opaque, otherwise
// use full weight since we want to propagate colors.
video::SColor d = src->getPixel(sx, sy);
diff --git a/src/client/render/core.cpp b/src/client/render/core.cpp
index f151832f3..c67f297c4 100644
--- a/src/client/render/core.cpp
+++ b/src/client/render/core.cpp
@@ -103,7 +103,7 @@ void RenderingCore::drawHUD()
if (show_hud) {
if (draw_crosshair)
hud->drawCrosshair();
-
+
hud->drawHotbar(client->getEnv().getLocalPlayer()->getWieldIndex());
hud->drawLuaElements(camera->getOffset());
camera->drawNametags();