aboutsummaryrefslogtreecommitdiff
path: root/src/version.cpp
diff options
context:
space:
mode:
authorest31 <MTest31@outlook.com>2015-07-29 15:22:51 +0200
committerest31 <MTest31@outlook.com>2015-07-29 15:53:23 +0200
commitf97c2702a2fee9496059169448ce97ed2b7da9b2 (patch)
tree869efc7449cd85fae289018250c379c6b1777090 /src/version.cpp
parentca63f7f10d912382ebc24a54995f7153598ed429 (diff)
downloadminetest-f97c2702a2fee9496059169448ce97ed2b7da9b2.tar.gz
minetest-f97c2702a2fee9496059169448ce97ed2b7da9b2.tar.bz2
minetest-f97c2702a2fee9496059169448ce97ed2b7da9b2.zip
Android: Fix minor makefile bugs
Fix commenting happening thanks to missing quotes and dereference variable the right way, to get rid of a compile error.
Diffstat (limited to 'src/version.cpp')
0 files changed, 0 insertions, 0 deletions
23'>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 193
/*
Minetest-c55
Copyright (C) 2010-2011 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 "nodemetadata.h"
#include "exceptions.h"
#include "gamedef.h"
#include "inventory.h"
#include "log.h"
#include "util/serialize.h"
#include "constants.h" // MAP_BLOCKSIZE
#include <sstream>

/*
	NodeMetadata
*/

NodeMetadata::NodeMetadata(IGameDef *gamedef):
	m_stringvars(),
	m_inventory(new Inventory(gamedef->idef()))
{
}

NodeMetadata::~NodeMetadata()
{
	delete m_inventory;
}

void NodeMetadata::serialize(std::ostream &os) const
{
	int num_vars = m_stringvars.size();
	writeU32(os, num_vars);
	for(std::map<std::string, std::string>::const_iterator
			i = m_stringvars.begin(); i != m_stringvars.end(); i++){
		os<<serializeString(i->first);