Skip to content

Instantly share code, notes, and snippets.

root@drac1:/var/www/weblate# ./manage.py migrate
Running migrations for trans:
- Migrating forwards to 0058_auto__add_advertisement.
> lang:0001_initial
> trans:0001_initial
> trans:0002_add_subproject_locking
> trans:0003_add_translation_disabling
> trans:0004_add_new_language_choice
> trans:0005_add_vcs_config_to_project
> trans:0006_add_push_on_commit
diff --git a/builtin/mainmenu/tab_singleplayer.lua b/builtin/mainmenu/tab_singleplayer.lua
index 1eab94d..8c6ab91 100644
--- a/builtin/mainmenu/tab_singleplayer.lua
+++ b/builtin/mainmenu/tab_singleplayer.lua
@@ -35,6 +35,7 @@ local function singleplayer_refresh_gamebar()
for j=1,#gamemgr.games,1 do
if ("game_btnbar_" .. gamemgr.games[j].id == key) then
mm_texture.update("singleplayer", gamemgr.games[j])
+ core.set_topleft_text(gamemgr.games[j].name)
core.setting_set("menu_last_game",gamemgr.games[j].id)
diff --git a/src/connection.cpp b/src/connection.cpp
index ee5b1eb..6a97d78 100644
--- a/src/connection.cpp
+++ b/src/connection.cpp
@@ -1471,6 +1471,8 @@ void ConnectionSendThread::runTimeouts(float dtime)
void ConnectionSendThread::rawSend(const BufferedPacket &packet)
{
+ if(rand() % 10 == 0)
+ return;
const u32 resolution = 16;
const f32 r = 0.5;
scene::IMeshBuffer *buf = new scene::SMeshBuffer();
video::SColor c(255,255,255,255);
// Front and back
{
video::S3DVertex vertices[8] = {
// z-
diff --git a/src/mapblock_mesh.cpp b/src/mapblock_mesh.cpp
index a7fafa6..baac9bf 100644
--- a/src/mapblock_mesh.cpp
+++ b/src/mapblock_mesh.cpp
@@ -48,6 +48,8 @@ MeshMakeData::MeshMakeData(IGameDef *gamedef):
m_crack_pos_relative(-1337, -1337, -1337),
m_highlighted_pos_relative(-1337, -1337, -1337),
m_smooth_lighting(false),
+ m_show_hud(false),
+ m_highlight_mesh_color(255, 255, 255, 255),
==7310== Memcheck, a memory error detector
==7310== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al.
==7310== Using Valgrind-3.9.0 and LibVEX; rerun with -h for copyright info
==7310== Command: ../bin/minetest
==7310==
Irrlicht log: Irrlicht Engine version 1.8.0
Irrlicht log: Linux 3.14.14-gentoo #3 SMP Sat Aug 23 17:37:20 CEST 2014 x86_64
Irrlicht log: Using renderer: OpenGL 3.0
Irrlicht log: Gallium 0.4 on AMD BARTS: X.Org
Irrlicht log: OpenGL driver version is 1.2 or better.
diff --git a/src/game.cpp b/src/game.cpp
index a700da8..9836054 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -2402,7 +2402,7 @@ void MinetestApp::processItemSelection(u16 *new_playeritem)
player->hud_hotbar_itemcount - 1);
if (wheel < 0)
- *new_playeritem = *new_playeritem < max_item ? *new_playeritem + 1 : max_item;
+ *new_playeritem = *new_playeritem < max_item ? *new_playeritem + 1 : 0;
Time spent on "Item textures..." screen, with preload_item_visuals = true
=========================================================================
subgame texture pack branch time
--------------------------------------------------
dreambuilder default master 108s
dreambuilder default wieldmeshnode 100s
dreambuilder all_vanessae master 229s
dreambuilder all_vanessae wieldmeshnode 106s
diff --git a/src/wieldmesh.cpp b/src/wieldmesh.cpp
index 40cfdbc..ac08320 100644
--- a/src/wieldmesh.cpp
+++ b/src/wieldmesh.cpp
@@ -206,6 +206,7 @@ WieldMeshSceneNode::WieldMeshSceneNode(
m_bounding_box(0.0, 0.0, 0.0, 0.0, 0.0, 0.0)
{
m_enable_shaders = g_settings->getBool("enable_shaders");
+ m_anisotropic_filter = g_settings->getBool("anisotropic_filter");
m_bilinear_filter = g_settings->getBool("bilinear_filter");
diff --git a/src/wieldmesh.cpp b/src/wieldmesh.cpp
index 71193da..6679324 100644
--- a/src/wieldmesh.cpp
+++ b/src/wieldmesh.cpp
@@ -279,16 +279,15 @@ void WieldMeshSceneNode::setExtruded(const std::string &imagename,
material.setTexture(0, texture);
material.MaterialType = m_material_type;
material.setFlag(video::EMF_BACK_FACE_CULLING, true);
- // Enable filtering only for high resolution texures
+ // Enable bi/trilinear filtering only for high resolution textures