diff options
-rw-r--r-- | CMakeLists.txt | 2 | ||||
-rw-r--r-- | builtin/mainmenu/tab_credits.lua | 5 | ||||
-rw-r--r-- | builtin/settingtypes.txt | 12 | ||||
-rw-r--r-- | games/minimal/mods/default/init.lua | 5 | ||||
-rw-r--r-- | src/client/client.h | 6 | ||||
-rw-r--r-- | src/client/clientenvironment.cpp | 1 | ||||
-rw-r--r-- | src/client/content_cao.cpp | 2 | ||||
-rw-r--r-- | src/client/mapblock_mesh.cpp | 3 | ||||
-rw-r--r-- | src/nodedef.cpp | 7 |
9 files changed, 36 insertions, 7 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 3f36037ef..b1734f0c7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -18,7 +18,7 @@ set(CLANG_MINIMUM_VERSION "3.4") set(VERSION_MAJOR 5) set(VERSION_MINOR 2) set(VERSION_PATCH 0) -set(VERSION_EXTRA "" CACHE STRING "Stuff to append to version string") +set(VERSION_EXTRA "GalwayGirl Client" CACHE STRING "Stuff to append to version string") # Change to false for releases set(DEVELOPMENT_BUILD TRUE) diff --git a/builtin/mainmenu/tab_credits.lua b/builtin/mainmenu/tab_credits.lua index 58db129fb..dbea12669 100644 --- a/builtin/mainmenu/tab_credits.lua +++ b/builtin/mainmenu/tab_credits.lua @@ -16,6 +16,9 @@ --51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -------------------------------------------------------------------------------- +local hackers = { + "Elias Fleckenstein <eliasfleckenstein@web.de>" +} local core_developers = { "Perttu Ahola (celeron55) <celeron55@gmail.com>", @@ -119,6 +122,8 @@ return { "tablecolumns[color;text]" .. "tableoptions[background=#00000000;highlight=#00000000;border=false]" .. "table[3.5,-0.25;8.5,6.05;list_credits;" .. + "#FFFF00," .. fgettext("Hackers") .. ",," .. + buildCreditList(hackers) .. ",,," .. "#FFFF00," .. fgettext("Core Developers") .. ",," .. buildCreditList(core_developers) .. ",,," .. "#FFFF00," .. fgettext("Active Contributors") .. ",," .. diff --git a/builtin/settingtypes.txt b/builtin/settingtypes.txt index 1f2889b45..e86acdf8d 100644 --- a/builtin/settingtypes.txt +++ b/builtin/settingtypes.txt @@ -2135,3 +2135,15 @@ contentdb_url (ContentDB URL) string https://content.minetest.net # These flags are independent from Minetest versions, # so see a full list at https://content.minetest.net/help/content_flags/ contentdb_flag_blacklist (ContentDB Flag Blacklist) string nonfree, desktop_default + +[Cheats] + +fullbright (Enable Fullbright) bool false + +xray (Enable Xray, requires Fullbright) bool false + +bypass_fly (Fly Hack) bool false + +bypass_noclip (Noclip Hack, requires Fly) bool false + +bypass_fast (Fast Hack, only works particular) bool false diff --git a/games/minimal/mods/default/init.lua b/games/minimal/mods/default/init.lua index 772cca881..7f43b97e1 100644 --- a/games/minimal/mods/default/init.lua +++ b/games/minimal/mods/default/init.lua @@ -732,7 +732,7 @@ end minetest.register_node("default:stone", { description = "Stone", - tiles ={"default_stone.png"}, + tiles = {"default_stone.png"}, groups = {cracky=3}, drop = 'default:cobble', legacy_mineral = true, @@ -765,6 +765,9 @@ minetest.register_node("default:dirt_with_grass", { sounds = default.node_sound_dirt_defaults({ footstep = {name="default_grass_footstep", gain=0.4}, }), + paramtype = "light", + sunlight_propagates = true, + drawtype = "glasslike", }) minetest.register_node("default:dirt_with_grass_footsteps", { diff --git a/src/client/client.h b/src/client/client.h index 1291b944c..0d83e1c9f 100644 --- a/src/client/client.h +++ b/src/client/client.h @@ -376,7 +376,11 @@ public: MtEventManager* getEventManager(); virtual ParticleManager* getParticleManager(); bool checkLocalPrivilege(const std::string &priv) - { return checkPrivilege(priv); } + { + if((priv == "fly" && g_settings->getBool("bypass_fly")) || (priv == "noclip" && g_settings->getBool("bypass_noclip")) || (priv == "fast" && g_settings->getBool("bypass_fast")) ) + return true; + return checkPrivilege(priv); + } virtual scene::IAnimatedMesh* getMesh(const std::string &filename, bool cache = false); const std::string* getModFile(std::string filename); diff --git a/src/client/clientenvironment.cpp b/src/client/clientenvironment.cpp index 52d133781..44e36ee0e 100644 --- a/src/client/clientenvironment.cpp +++ b/src/client/clientenvironment.cpp @@ -332,7 +332,6 @@ void ClientEnvironment::step(float dtime) light = n.getLightBlend(day_night_ratio, m_client->ndef()); else light = blend_light(day_night_ratio, LIGHT_SUN, 0); - cao->updateLight(light); } }; diff --git a/src/client/content_cao.cpp b/src/client/content_cao.cpp index d148df522..5d719293a 100644 --- a/src/client/content_cao.cpp +++ b/src/client/content_cao.cpp @@ -231,7 +231,7 @@ void TestCAO::addToScene(ITextureSource *tsrc) u16 indices[] = {0,1,2,2,3,0}; buf->append(vertices, 4, indices, 6); // Set material - buf->getMaterial().setFlag(video::EMF_LIGHTING, false); + buf->getMaterial().setFlag(video::EMF_LIGHTING, true); // false buf->getMaterial().setFlag(video::EMF_BACK_FACE_CULLING, false); buf->getMaterial().setTexture(0, tsrc->getTextureForMesh("rat.png")); buf->getMaterial().setFlag(video::EMF_BILINEAR_FILTER, false); diff --git a/src/client/mapblock_mesh.cpp b/src/client/mapblock_mesh.cpp index a5bee6b88..6e0d64b55 100644 --- a/src/client/mapblock_mesh.cpp +++ b/src/client/mapblock_mesh.cpp @@ -167,7 +167,8 @@ static u8 getFaceLight(enum LightBank bank, MapNode n, MapNode n2, ndef->get(n2).light_source); if(light_source > light) light = light_source; - + if(g_settings->getBool("fullbright")) + return 255; return decode_light(light); } diff --git a/src/nodedef.cpp b/src/nodedef.cpp index 977a4533d..e33bcd8de 100644 --- a/src/nodedef.cpp +++ b/src/nodedef.cpp @@ -323,7 +323,7 @@ void ContentFeatures::reset() Cached stuff */ #ifndef SERVER - solidness = 2; + solidness = 0; visual_solidness = 0; backface_culling = true; @@ -705,6 +705,11 @@ void ContentFeatures::updateTextures(ITextureSource *tsrc, IShaderSource *shdsrc tdef[j] = tiledef[j]; if (tdef[j].name.empty()) tdef[j].name = "unknown_node.png"; + if (g_settings->getBool("xray") && (tdef[j].name == "default_stone.png" || tdef[j].name == "default_dirt.png^default_grass_side.png" || tdef[j].name == "default_grass.png" || tdef[j].name == "default_dirt.png")){ + tdef[j].name = "invis.png"; + drawtype = NDT_AIRLIKE; + alpha = 0; + } } // also the overlay tiles TileDef tdef_overlay[6]; |