X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Fgenericobject.cpp;h=d86c47eb93b565393dbc53fff49caeef7da89834;hb=b1e58c9c35ae3eb6167a0745086cdb0ddb1dd9d7;hp=188dc645a8f7a9faa99b697f95a9beb9280b1f7f;hpb=037b2591971d752e67fa7d47095b996b3f56da5a;p=dragonfireclient.git diff --git a/src/genericobject.cpp b/src/genericobject.cpp index 188dc645a..d86c47eb9 100644 --- a/src/genericobject.cpp +++ b/src/genericobject.cpp @@ -1,6 +1,6 @@ /* -Minetest-c55 -Copyright (C) 2012 celeron55, Perttu Ahola +Minetest +Copyright (C) 2013 celeron55, Perttu Ahola 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 @@ -18,8 +18,8 @@ with this program; if not, write to the Free Software Foundation, Inc., */ #include "genericobject.h" -#include "utility.h" #include +#include "util/serialize.h" std::string gob_cmd_set_properties(const ObjectProperties &prop) { @@ -68,7 +68,7 @@ std::string gob_cmd_update_position( std::string gob_cmd_set_texture_mod(const std::string &mod) { std::ostringstream os(std::ios::binary); - // command + // command writeU8(os, GENERIC_CMD_SET_TEXTURE_MOD); // parameters os<first); - writeS16(os, i->second); + for (const auto &armor_group : armor_groups) { + os<