aboutsummaryrefslogtreecommitdiff
path: root/src/nameidmapping.h
diff options
context:
space:
mode:
authorJürgen Doser <jurgen.doser@gmail.com>2013-01-25 15:52:53 +0100
committerPilzAdam <PilzAdam@gmx.de>2013-02-10 12:45:25 +0100
commit6b1420a58af7472880bebb9d0f89be987bc25da1 (patch)
treea7c5e05f198868c011e419942235ccce952a9529 /src/nameidmapping.h
parent1cda39d5bb1da90116ec9fb3da913634312b62fa (diff)
downloadminetest-6b1420a58af7472880bebb9d0f89be987bc25da1.tar.gz
minetest-6b1420a58af7472880bebb9d0f89be987bc25da1.tar.bz2
minetest-6b1420a58af7472880bebb9d0f89be987bc25da1.zip
Disable backface culling for drawtype plantlike and only draw 2 faces instead of 4
This way, plants actually show the real backface on their back side, i.e., the front face mirrored around the vertical axis, instead of showing the front face on both sides. This looked weird when the texture was not symmetrical around the vertical axis.
Diffstat (limited to 'src/nameidmapping.h')
0 files changed, 0 insertions, 0 deletions
> 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192
/*
Minetest
Copyright (C) 2010-2020 Minetest core development team

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 2.1 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/

#include "serverinventorymgr.h"
#include "map.h"
#include "nodemetadata.h"
#include "player_sao.h"
#include "remoteplayer.h"
#include "server.h"
#include "serverenvironment.h"

ServerInventoryManager::ServerInventoryManager() : InventoryManager()
{
}

ServerInventoryManager::~ServerInventoryManager()
{
	// Delete detached inventories
	for (auto &detached_inventory : m_detached_inventories) {
		delete detached_inventory.second.inventory;
	}
}

Inventory *ServerInventoryManager::getInventory(const InventoryLocation &loc)
{