]> git.lizzy.rs Git - dragonfireclient.git/commitdiff
Spacing fixes
authorShadowNinja <shadowninja@minetest.net>
Wed, 1 Dec 2021 23:54:12 +0000 (18:54 -0500)
committerrubenwardy <rw@rubenwardy.com>
Fri, 8 Apr 2022 13:55:21 +0000 (14:55 +0100)
31 files changed:
CMakeLists.txt
client/shaders/nodes_shader/opengl_fragment.glsl
client/shaders/nodes_shader/opengl_vertex.glsl
clientmods/preview/mod.conf
cmake/Modules/FindSQLite3.cmake
cmake/Modules/FindVorbis.cmake
doc/lgpl-2.1.txt
minetest.conf.example
src/CMakeLists.txt
src/client/CMakeLists.txt
src/client/clientmap.cpp
src/client/imagefilters.cpp
src/client/render/core.cpp
src/clientiface.h
src/collision.cpp
src/config.h
src/database/database-leveldb.cpp
src/inventorymanager.cpp
src/irrlicht_changes/CGUITTFont.cpp
src/mapgen/dungeongen.cpp
src/mapgen/mapgen_flat.cpp
src/mapgen/mg_biome.cpp
src/mapgen/mg_ore.cpp
src/network/connection.h
src/script/cpp_api/s_env.cpp
src/script/lua_api/l_env.cpp
src/script/lua_api/l_env.h
src/serverenvironment.cpp
src/util/ieee_float.cpp
src/util/string.h
util/generate-texture-normals.sh

index 827191835d5bb2baa90fe754a4c847fbded21049..5dfc857d364fad852049354fe5e5ed32f79805f4 100644 (file)
@@ -69,7 +69,7 @@ if(NOT "${IRRLICHTMT_BUILD_DIR}" STREQUAL "")
        find_package(IrrlichtMt QUIET
                PATHS "${IRRLICHTMT_BUILD_DIR}"
                NO_DEFAULT_PATH
-)
+       )
 
        if(NOT TARGET IrrlichtMt::IrrlichtMt)
                # find_package() searches certain subdirectories. ${PATH}/cmake is not
index 4d0d107d141fdaaf130d74abbb62b1fb2c482cc1..fea3507883aa445504be06cd9e4cb7e3b88adfc2 100644 (file)
@@ -557,6 +557,6 @@ void main(void)
                - fogShadingParameter * length(eyeVec) / fogDistance, 0.0, 1.0);
        col = mix(skyBgColor, col, clarity);
        col = vec4(col.rgb, base.a);
-       
+
        gl_FragColor = col;
 }
index 935fbf04301d909e4f85b70e0feb6006908a80a4..8c7e274598e252108d136df1bca8daca7bd4fa54 100644 (file)
@@ -199,13 +199,13 @@ void main(void)
                vec3 nNormal = normalize(vNormal);
                cosLight = dot(nNormal, -v_LightDirection);
                
-               // Calculate normal offset scale based on the texel size adjusted for 
+               // Calculate normal offset scale based on the texel size adjusted for
                // curvature of the SM texture. This code must be change together with
                // getPerspectiveFactor or any light-space transformation.
                vec3 eyeToVertex = worldPosition - eyePosition + cameraOffset;
                // Distance from the vertex to the player
                float distanceToPlayer = length(eyeToVertex - v_LightDirection * dot(eyeToVertex, v_LightDirection)) / f_shadowfar;
-               // perspective factor estimation according to the 
+               // perspective factor estimation according to the
                float perspectiveFactor = distanceToPlayer * xyPerspectiveBias0 + xyPerspectiveBias1;
                float texelSize = f_shadowfar * perspectiveFactor * perspectiveFactor /
                                (f_textureresolution * xyPerspectiveBias1  - perspectiveFactor * xyPerspectiveBias0);
index 4e56ec2938fce205e0387676a0e41ca166ce0bd1..23a5c3e90a4b6af247b5fdaa253fbcc0e2ffc29a 100644 (file)
@@ -1 +1 @@
-name = preview 
+name = preview
index b23553a807cf7af6634c8b77c4259c8341a67af9..8a66cb241b7cfcf50c12fbe1860e6ba1e415ee7a 100644 (file)
@@ -1,4 +1,4 @@
-mark_as_advanced(SQLITE3_LIBRARY SQLITE3_INCLUDE_DIR) 
+mark_as_advanced(SQLITE3_LIBRARY SQLITE3_INCLUDE_DIR)
 
 find_path(SQLITE3_INCLUDE_DIR sqlite3.h)
 
index e5fe7f25e8765fe9388764ccc629556c0044771e..222ddd9d56bd66a27ef174e5e2adacfee4c2a766 100644 (file)
@@ -29,18 +29,17 @@ else(NOT GP2XWIZ)
     find_package_handle_standard_args(Vorbis DEFAULT_MSG
         VORBIS_INCLUDE_DIR VORBIS_LIBRARY)
 endif(NOT GP2XWIZ)
-    
+
 if(VORBIS_FOUND)
-  if(NOT GP2XWIZ)
-     set(VORBIS_LIBRARIES ${VORBISFILE_LIBRARY} ${VORBIS_LIBRARY}
-           ${OGG_LIBRARY})
-  else(NOT GP2XWIZ)
-     set(VORBIS_LIBRARIES ${VORBIS_LIBRARY})
-  endif(NOT GP2XWIZ)
+    if(NOT GP2XWIZ)
+        set(VORBIS_LIBRARIES ${VORBISFILE_LIBRARY} ${VORBIS_LIBRARY}
+            ${OGG_LIBRARY})
+    else(NOT GP2XWIZ)
+        set(VORBIS_LIBRARIES ${VORBIS_LIBRARY})
+    endif(NOT GP2XWIZ)
 else(VORBIS_FOUND)
-  set(VORBIS_LIBRARIES)
+    set(VORBIS_LIBRARIES)
 endif(VORBIS_FOUND)
 
 mark_as_advanced(OGG_INCLUDE_DIR VORBIS_INCLUDE_DIR)
 mark_as_advanced(OGG_LIBRARY VORBIS_LIBRARY VORBISFILE_LIBRARY)
-
index 4362b49151d7b34ef83b3067a8f9c9f877d72a0e..e5ab03e1238af66de157fae2e6270d7e8f967f93 100644 (file)
@@ -55,7 +55,7 @@ modified by someone else and passed on, the recipients should know
 that what they have is not the original version, so that the original
 author's reputation will not be affected by problems that might be
 introduced by others.
-\f
+
   Finally, software patents pose a constant threat to the existence of
 any free program.  We wish to make sure that a company cannot
 effectively restrict the users of a free program by obtaining a
@@ -111,7 +111,7 @@ modification follow.  Pay close attention to the difference between a
 "work based on the library" and a "work that uses the library".  The
 former contains code derived from the library, whereas the latter must
 be combined with the library in order to run.
-\f
+
                   GNU LESSER GENERAL PUBLIC LICENSE
    TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
 
@@ -158,7 +158,7 @@ Library.
   You may charge a fee for the physical act of transferring a copy,
 and you may at your option offer warranty protection in exchange for a
 fee.
-\f
+
   2. You may modify your copy or copies of the Library or any portion
 of it, thus forming a work based on the Library, and copy and
 distribute such modifications or work under the terms of Section 1
@@ -216,7 +216,7 @@ instead of to this License.  (If a newer version than version 2 of the
 ordinary GNU General Public License has appeared, then you can specify
 that version instead if you wish.)  Do not make any other change in
 these notices.
-\f
+
   Once this change is made in a given copy, it is irreversible for
 that copy, so the ordinary GNU General Public License applies to all
 subsequent copies and derivative works made from that copy.
@@ -267,7 +267,7 @@ Library will still fall under Section 6.)
 distribute the object code for the work under the terms of Section 6.
 Any executables containing that work also fall under Section 6,
 whether or not they are linked directly with the Library itself.
-\f
+
   6. As an exception to the Sections above, you may also combine or
 link a "work that uses the Library" with the Library to produce a
 work containing portions of the Library, and distribute that work
@@ -329,7 +329,7 @@ restrictions of other proprietary libraries that do not normally
 accompany the operating system.  Such a contradiction means you cannot
 use both them and the Library together in an executable that you
 distribute.
-\f
+
   7. You may place library facilities that are a work based on the
 Library side-by-side in a single library together with other library
 facilities not covered by this License, and distribute such a combined
@@ -370,7 +370,7 @@ subject to these terms and conditions.  You may not impose any further
 restrictions on the recipients' exercise of the rights granted herein.
 You are not responsible for enforcing compliance by third parties with
 this License.
-\f
+
   11. If, as a consequence of a court judgment or allegation of patent
 infringement or for any other reason (not limited to patent issues),
 conditions are imposed on you (whether by court order, agreement or
@@ -422,7 +422,7 @@ conditions either of that version or of any later version published by
 the Free Software Foundation.  If the Library does not specify a
 license version number, you may choose any version ever published by
 the Free Software Foundation.
-\f
+
   14. If you wish to incorporate parts of the Library into other free
 programs whose distribution conditions are incompatible with these,
 write to the author to ask for permission.  For software which is
@@ -456,7 +456,7 @@ SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
 DAMAGES.
 
                      END OF TERMS AND CONDITIONS
-\f
+
            How to Apply These Terms to Your New Libraries
 
   If you develop a new library, and you want it to be of the greatest
index ed2ebc969fd1979f35c5f10065b23531c94d4abe..21aeb354674a8c9833ec7b7d9044e5d978facd0a 100644 (file)
 # ask_reconnect_on_crash = false
 
 #    From how far clients know about objects, stated in mapblocks (16 nodes).
-#    
+#
 #    Setting this larger than active_block_range will also cause the server
 #    to maintain active objects up to this distance in the direction the
 #    player is looking. (This can avoid mobs suddenly disappearing from view)
 #    octaves     = 3,
 #    persistence = 0.5,
 #    lacunarity  = 2.0,
-#    flags       = 
+#    flags       =
 # }
 
 #    Second of two 3D noises that together define tunnels.
 #    octaves     = 3,
 #    persistence = 0.5,
 #    lacunarity  = 2.0,
-#    flags       = 
+#    flags       =
 # }
 
 #    3D noise defining giant caverns.
 #    octaves     = 5,
 #    persistence = 0.63,
 #    lacunarity  = 2.0,
-#    flags       = 
+#    flags       =
 # }
 
 #    3D noise defining terrain.
 #    octaves     = 2,
 #    persistence = 0.8,
 #    lacunarity  = 2.0,
-#    flags       = 
+#    flags       =
 # }
 
 ## Mapgen V6
 #    octaves     = 5,
 #    persistence = 0.63,
 #    lacunarity  = 2.0,
-#    flags       = 
+#    flags       =
 # }
 
 #    3D noise defining structure of river canyon walls.
 #    octaves     = 4,
 #    persistence = 0.75,
 #    lacunarity  = 2.0,
-#    flags       = 
+#    flags       =
 # }
 
 #    3D noise defining structure of floatlands.
 #    octaves     = 4,
 #    persistence = 0.75,
 #    lacunarity  = 1.618,
-#    flags       = 
+#    flags       =
 # }
 
 #    3D noise defining giant caverns.
 #    octaves     = 5,
 #    persistence = 0.63,
 #    lacunarity  = 2.0,
-#    flags       = 
+#    flags       =
 # }
 
 #    First of two 3D noises that together define tunnels.
 #    octaves     = 3,
 #    persistence = 0.5,
 #    lacunarity  = 2.0,
-#    flags       = 
+#    flags       =
 # }
 
 #    Second of two 3D noises that together define tunnels.
 #    octaves     = 3,
 #    persistence = 0.5,
 #    lacunarity  = 2.0,
-#    flags       = 
+#    flags       =
 # }
 
 #    3D noise that determines number of dungeons per mapchunk.
 #    octaves     = 2,
 #    persistence = 0.8,
 #    lacunarity  = 2.0,
-#    flags       = 
+#    flags       =
 # }
 
 ## Mapgen Carpathian
 #    octaves     = 5,
 #    persistence = 0.55,
 #    lacunarity  = 2.0,
-#    flags       = 
+#    flags       =
 # }
 
 #    First of two 3D noises that together define tunnels.
 #    octaves     = 3,
 #    persistence = 0.5,
 #    lacunarity  = 2.0,
-#    flags       = 
+#    flags       =
 # }
 
 #    Second of two 3D noises that together define tunnels.
 #    octaves     = 3,
 #    persistence = 0.5,
 #    lacunarity  = 2.0,
-#    flags       = 
+#    flags       =
 # }
 
 #    3D noise defining giant caverns.
 #    octaves     = 5,
 #    persistence = 0.63,
 #    lacunarity  = 2.0,
-#    flags       = 
+#    flags       =
 # }
 
 #    3D noise that determines number of dungeons per mapchunk.
 #    octaves     = 2,
 #    persistence = 0.8,
 #    lacunarity  = 2.0,
-#    flags       = 
+#    flags       =
 # }
 
 ## Mapgen Flat
 #    octaves     = 3,
 #    persistence = 0.5,
 #    lacunarity  = 2.0,
-#    flags       = 
+#    flags       =
 # }
 
 #    Second of two 3D noises that together define tunnels.
 #    octaves     = 3,
 #    persistence = 0.5,
 #    lacunarity  = 2.0,
-#    flags       = 
+#    flags       =
 # }
 
 #    3D noise defining giant caverns.
 #    octaves     = 5,
 #    persistence = 0.63,
 #    lacunarity  = 2.0,
-#    flags       = 
+#    flags       =
 # }
 
 #    3D noise that determines number of dungeons per mapchunk.
 #    octaves     = 2,
 #    persistence = 0.8,
 #    lacunarity  = 2.0,
-#    flags       = 
+#    flags       =
 # }
 
 ## Mapgen Fractal
 #    octaves     = 3,
 #    persistence = 0.5,
 #    lacunarity  = 2.0,
-#    flags       = 
+#    flags       =
 # }
 
 #    Second of two 3D noises that together define tunnels.
 #    octaves     = 3,
 #    persistence = 0.5,
 #    lacunarity  = 2.0,
-#    flags       = 
+#    flags       =
 # }
 
 #    3D noise that determines number of dungeons per mapchunk.
 #    octaves     = 2,
 #    persistence = 0.8,
 #    lacunarity  = 2.0,
-#    flags       = 
+#    flags       =
 # }
 
 ## Mapgen Valleys
 #    octaves     = 3,
 #    persistence = 0.5,
 #    lacunarity  = 2.0,
-#    flags       = 
+#    flags       =
 # }
 
 #    Second of two 3D noises that together define tunnels.
 #    octaves     = 3,
 #    persistence = 0.5,
 #    lacunarity  = 2.0,
-#    flags       = 
+#    flags       =
 # }
 
 #    The depth of dirt or other biome filler node.
 #    octaves     = 6,
 #    persistence = 0.63,
 #    lacunarity  = 2.0,
-#    flags       = 
+#    flags       =
 # }
 
 #    Defines large-scale river channel structure.
 #    octaves     = 6,
 #    persistence = 0.8,
 #    lacunarity  = 2.0,
-#    flags       = 
+#    flags       =
 # }
 
 #    Amplifies the valleys.
 #    octaves     = 2,
 #    persistence = 0.8,
 #    lacunarity  = 2.0,
-#    flags       = 
+#    flags       =
 # }
 
 ## Advanced
index 2de68a8f0855308cb0e00163fc023d9f134e1425..0323603fc2b45eadaf22eb28602f13454871de3e 100644 (file)
@@ -711,7 +711,7 @@ else()
                        # Move text segment below LuaJIT's 47-bit limit (see issue #9367)
                        if(CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
                                # FreeBSD uses lld, and lld does not support -Ttext-segment, suggesting
-                               # --image-base instead. Not sure if it's equivalent change for the purpose 
+                               # --image-base instead. Not sure if it's equivalent change for the purpose
                                # but at least if fixes build on FreeBSD/aarch64
                                # XXX: the condition should also be changed to check for lld regardless of
                                # os, bit CMake doesn't have anything like CMAKE_LINKER_IS_LLD yet
index 8d058852a90ca758781815e2b908a6fc966174b6..656ad45cebf01a773afaea4943b00571cb8eb2b0 100644 (file)
@@ -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
 )
index 99ff0aefb98c7c1690117cc3759218a49117bfd5..10967c0cb1eec4009b307528d4eb8a8e64f0ca49 100644 (file)
@@ -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);
index b62e336f757a28a66193f60386f3ee1be8442c61..c9d1504ad6bb80168129cabac30a2115156f4a9f 100644 (file)
@@ -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);
index f151832f34fa00d75e80abac43d89345c5ac9173..c67f297c412e3cfbbf4ed1b6ac8d62d0de778e6c 100644 (file)
@@ -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();
index 1be9c972a5218be3657d0f3573d1fa740a132a83..947952e826a61fdbdf766e6fc8080bb7c28cc1a6 100644 (file)
@@ -341,7 +341,7 @@ class RemoteClient
        u8 getMinor() const { return m_version_minor; }
        u8 getPatch() const { return m_version_patch; }
        const std::string &getFullVer() const { return m_full_version; }
-       
+
        void setLangCode(const std::string &code) { m_lang_code = code; }
        const std::string &getLangCode() const { return m_lang_code; }
 
index ccc3a058db27b234b273a4dd9d5ace4c4e5826bb..be135a2256a1fb686e83eab8e5ebfdf79beb12ee 100644 (file)
@@ -153,7 +153,7 @@ CollisionAxis axisAlignedCollision(
                                                (std::max(movingbox.MaxEdge.Z + speed.Z * time, staticbox.MaxEdge.Z)
                                                        - std::min(movingbox.MinEdge.Z + speed.Z * time, staticbox.MinEdge.Z)
                                                        - relbox.MinEdge.Z < 0)
-                                       ) 
+                                       )
                                        return COLLISION_AXIS_X;
                        }
                } else {
@@ -180,7 +180,7 @@ CollisionAxis axisAlignedCollision(
                                                (std::max(movingbox.MaxEdge.Y + speed.Y * time, staticbox.MaxEdge.Y)
                                                        - std::min(movingbox.MinEdge.Y + speed.Y * time, staticbox.MinEdge.Y)
                                                        - relbox.MinEdge.Y < 0)
-                                       ) 
+                                       )
                                        return COLLISION_AXIS_Z;
                        }
                }
index 5e116464213765b6546e7be4e691f1066ae077e8..8d920b150f09a9583ef82ad0615b8b31802c0623 100644 (file)
@@ -16,7 +16,7 @@
        #define PROJECT_NAME_C "Minetest"
        #define STATIC_SHAREDIR ""
        #define VERSION_STRING STR(VERSION_MAJOR) "." STR(VERSION_MINOR) "." STR(VERSION_PATCH) STR(VERSION_EXTRA)
-#ifdef NDEBUG
+       #ifdef NDEBUG
                #define BUILD_TYPE "Release"
        #else
                #define BUILD_TYPE "Debug"
index 39f4c84423030fa7e9b0cfb0dbe35cd4e8bcea1b..6e59daab3c9ba60bcbe93fa35c5a40831be01f90 100644 (file)
@@ -74,7 +74,7 @@ void Database_LevelDB::loadBlock(const v3s16 &pos, std::string *block)
                i64tos(getBlockAsInteger(pos)), block);
 
        if (!status.ok())
-               block->clear(); 
+               block->clear();
 }
 
 bool Database_LevelDB::deleteBlock(const v3s16 &pos)
index a159bf786f58910c116f173bb2ce6cbb41ad3a49..ecdb56a972240b09e5245d007c7613b0ded38437 100644 (file)
@@ -172,7 +172,7 @@ void IMoveAction::onPutAndOnTake(const ItemStack &src_item, ServerActiveObject *
                sa->player_inventory_OnPut(*this, src_item, player);
        else
                assert(false);
-       
+
        if (from_inv.type == InventoryLocation::DETACHED)
                sa->detached_inventory_OnTake(*this, src_item, player);
        else if (from_inv.type == InventoryLocation::NODEMETA)
index e785ea8373fcd7243b3eca814368ffe1a3ebd539..787f4cd5afc78050f54043abc5aeaa825c8e2823 100644 (file)
@@ -478,7 +478,7 @@ CGUITTGlyphPage* CGUITTFont::getLastGlyphPage() const
 CGUITTGlyphPage* CGUITTFont::createGlyphPage(const u8& pixel_mode)
 {
        CGUITTGlyphPage* page = 0;
-       
+
        // Name of our page.
        io::path name("TTFontGlyphPage_");
        name += tt_face->family_name;
index acdb1a0f0f27edd0348f5cf8b72d6f2f4563e4de..1d439abebddb9afe533e627cab91248e8106b0c5 100644 (file)
@@ -71,7 +71,7 @@ DungeonGen::DungeonGen(const NodeDefManager *ndef,
                dp.num_dungeons        = 1;
                dp.notifytype          = GENNOTIFY_DUNGEON;
 
-               dp.np_alt_wall = 
+               dp.np_alt_wall =
                        NoiseParams(-0.4, 1.0, v3f(40.0, 40.0, 40.0), 32474, 6, 1.1, 2.0);
        }
 }
index 342455029189871bf0ad56c94cd5cc488f8b350e..6b249ea1fe239d1b75ec8eadba8d93af67e3d9bf 100644 (file)
@@ -177,7 +177,7 @@ void MapgenFlatParams::setDefaultSettings(Settings *settings)
 int MapgenFlat::getSpawnLevelAtPoint(v2s16 p)
 {
        s16 stone_level = ground_level;
-       float n_terrain = 
+       float n_terrain =
                ((spflags & MGFLAT_LAKES) || (spflags & MGFLAT_HILLS)) ?
                NoisePerlin2D(&noise_terrain->np, p.X, p.Y, seed) :
                0.0f;
index f08cc190f71e3258afec47bd08ca2228a177d6f3..8b4c96cd5cdc47be0322e79c8815abac1f7deaf8 100644 (file)
@@ -273,7 +273,7 @@ Biome *BiomeGenOriginal::calcBiomeFromNoise(float heat, float humidity, v3s16 po
                        pos.Y - biome_closest_blend->max_pos.Y)
                return biome_closest_blend;
 
-       return (biome_closest) ? biome_closest : (Biome *)m_bmgr->getRaw(BIOME_NONE);   
+       return (biome_closest) ? biome_closest : (Biome *)m_bmgr->getRaw(BIOME_NONE);
 }
 
 
index 5814f433a81182b7214aeb15f6637f36b4d0b5a2..4f0c35548454516727f2033bd89275f8cf4d56a7 100644 (file)
@@ -498,8 +498,8 @@ void OreVein::generate(MMVManip *vm, int mapseed, u32 blockseed,
                }
 
                // randval ranges from -1..1
-               /* 
-                       Note: can generate values slightly larger than 1 
+               /*
+                       Note: can generate values slightly larger than 1
                        but this can't be changed as mapgen must be deterministic accross versions.
                */
                float randval   = (float)pr.next() / float(pr.RANDOM_RANGE / 2) - 1.f;
index 1afb4ae841f63dda3d855829567a04ff02b7a8ce..88e323bb1195b2c7bed178dda5bc9b1f60e02aa8 100644 (file)
@@ -752,8 +752,8 @@ class Connection
        void putEvent(ConnectionEventPtr e);
 
        void TriggerSend();
-       
-       bool ConnectedToServer() 
+
+       bool ConnectedToServer()
        {
                return getPeerNoEx(PEER_ID_SERVER) != nullptr;
        }
index 874c37b6eb53207b061a1d829e51c803cfb471d0..af68f689f9f67552e1e63b4b3bdd91d73f6722d7 100644 (file)
@@ -140,10 +140,10 @@ void ScriptApiEnv::initializeEnvironment(ServerEnvironment *env)
 
                bool simple_catch_up = true;
                getboolfield(L, current_abm, "catch_up", simple_catch_up);
-               
+
                s16 min_y = INT16_MIN;
                getintfield(L, current_abm, "min_y", min_y);
-               
+
                s16 max_y = INT16_MAX;
                getintfield(L, current_abm, "max_y", max_y);
 
index 54821df24e1db03e9a887bbbdf0834e9e302f6ca..7640f27825dde091016f9ca0a848676836e11326 100644 (file)
@@ -757,7 +757,7 @@ int ModApiEnvMod::l_get_objects_in_area(lua_State *L)
 {
        GET_ENV_PTR;
        ScriptApiBase *script = getScriptApiBase(L);
-       
+
        v3f minp = read_v3f(L, 1) * BS;
        v3f maxp = read_v3f(L, 2) * BS;
        aabb3f box(minp, maxp);
@@ -1409,7 +1409,7 @@ int ModApiEnvMod::l_compare_block_status(lua_State *L)
        v3s16 nodepos = check_v3s16(L, 1);
        std::string condition_s = luaL_checkstring(L, 2);
        auto status = env->getBlockStatus(getNodeBlockPos(nodepos));
-       
+
        int condition_i = -1;
        if (!string_to_enum(es_BlockStatusType, condition_i, condition_s))
                return 0; // Unsupported
index 67c76faae579706d9255fdbeddc32150cfb9ac80..a7d406d2a51a6b4017b194cf4430b888102f784a 100644 (file)
@@ -114,7 +114,7 @@ class ModApiEnvMod : public ModApiBase {
 
        // get_objects_inside_radius(pos, radius)
        static int l_get_objects_inside_radius(lua_State *L);
-       
+
        // get_objects_in_area(pos, minp, maxp)
        static int l_get_objects_in_area(lua_State *L);
 
index f3711652ca728067212beef00937da097ff052f2..34a1e33e5491cf2e27ea2670085f9d11c91b2e40 100644 (file)
@@ -892,7 +892,7 @@ class ABMHandler
                        for (ActiveABM &aabm : *m_aabms[c]) {
                                if ((p.Y < aabm.min_y) || (p.Y > aabm.max_y))
                                        continue;
-                               
+
                                if (myrand() % aabm.chance != 0)
                                        continue;
 
index 887258921b125757b116546d06e9f1260e3e99ba..b73763c550df4eb53c96801c0b2074c02cd89993 100644 (file)
@@ -39,7 +39,7 @@ f32 u32Tof32Slow(u32 i)
        if (exp == 0xFF) {
                // Inf/NaN
                if (imant == 0) {
-                       if (std::numeric_limits<f32>::has_infinity)     
+                       if (std::numeric_limits<f32>::has_infinity)
                                return sign ? -std::numeric_limits<f32>::infinity() :
                                        std::numeric_limits<f32>::infinity();
                        return sign ? std::numeric_limits<f32>::max() :
index 8a9e83f2296ab46c8aa81126501a4c2803ff2f30..f4ca1a7de65cb2be281d937f9fcbcdce0e212543 100644 (file)
@@ -410,7 +410,7 @@ DEFINE_STD_TOSTRING_FLOATINGPOINT(long double)
 template <typename T>
 inline wstring to_wstring(T val)
 {
-      return utf8_to_wide(to_string(val));
+       return utf8_to_wide(to_string(val));
 }
 }
 #endif
index 6279dfa692e5c724a829ffd9e8a95e485e73f896..b2fcbf77bc4a51b660605f0d334a8618338bcccc 100755 (executable)
@@ -197,7 +197,7 @@ normalMap()
                                        (gimp-convert-rgb image) ()
                                )
 
-                               (plug-in-normalmap 
+                               (plug-in-normalmap
                                        RUN-NONINTERACTIVE
                                        image
                                        drawable