aboutsummaryrefslogtreecommitdiff
path: root/games/minimal/mods/default/textures/heart.png
diff options
context:
space:
mode:
authorsapier <Sapier at GMX dot net>2014-05-17 15:30:26 +0200
committersapier <Sapier at GMX dot net>2014-05-17 15:32:51 +0200
commit87b4bce594689b90a44c3c11e09dc6210dcdf0b5 (patch)
tree7542d3c3693f099b1d79ff221a3aea9cc3ab3ac2 /games/minimal/mods/default/textures/heart.png
parentc3984569c06dc3c2890516e95adc38dcab9ec89a (diff)
downloadminetest-87b4bce594689b90a44c3c11e09dc6210dcdf0b5.tar.gz
minetest-87b4bce594689b90a44c3c11e09dc6210dcdf0b5.tar.bz2
minetest-87b4bce594689b90a44c3c11e09dc6210dcdf0b5.zip
Fix singleplayer dialogs missing game customization
Diffstat (limited to 'games/minimal/mods/default/textures/heart.png')
0 files changed, 0 insertions, 0 deletions
'#n146'>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 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236
/*
Minetest
Copyright (C) 2013 celeron55, Perttu Ahola <celeron55@gmail.com>

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 "rollback_interface.h"
#include <sstream>
#include "util/serialize.h"
#include "util/string.h"
#include "util/numeric.h"
#include "util/basic_macros.h"
#include "map.h"
#include "gamedef.h"
#include "nodedef.h"
#include "nodemetadata.h"
#include "exceptions.h"
#include "log.h"
#include "inventorymanager.h"
#include "inventory.h"
#include "mapblock.h"


RollbackNode::RollbackNode(Map *map, v3s16 p, IGameDef *gamedef)
{
	const NodeDefManager *ndef = gamedef->ndef();
	MapNode n = map->getNode(p);
	name = ndef->get(n).name;
	param1 = n.param1;
	param2 = n.param2;
	NodeMetadata *metap = map->getNodeMetadata(p);
	if (metap) {
		std::ostringstream os(std::ios::binary);
		metap->serialize(os, 1); // FIXME: version bump??
		meta = os.str();