summaryrefslogtreecommitdiff
path: root/src/genericobject.cpp
diff options
context:
space:
mode:
authorTeTpaAka <TeTpaAka@users.noreply.github.com>2015-05-15 21:46:56 +0200
committerkwolekr <kwolekr@minetest.net>2015-05-15 16:21:01 -0400
commit18c2f16c138f4b40b4705507b46d24e1518e4705 (patch)
tree2407edb6a3e367ae4875459a4a33e5608488a65a /src/genericobject.cpp
parent5d1d7c17ea234a01af3a16f31bc0e363ffd150ba (diff)
downloadminetest-18c2f16c138f4b40b4705507b46d24e1518e4705.tar.gz
minetest-18c2f16c138f4b40b4705507b46d24e1518e4705.tar.bz2
minetest-18c2f16c138f4b40b4705507b46d24e1518e4705.zip
Generalize core.get/set_nametag_color into core.get/set_nametag_attributes
Diffstat (limited to 'src/genericobject.cpp')
-rw-r--r--src/genericobject.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/genericobject.cpp b/src/genericobject.cpp
index 1f4f59e92..78dc7fa91 100644
--- a/src/genericobject.cpp
+++ b/src/genericobject.cpp
@@ -170,12 +170,13 @@ std::string gob_cmd_update_attachment(int parent_id, std::string bone, v3f posit
return os.str();
}
-std::string gob_cmd_set_nametag_color(video::SColor color)
+std::string gob_cmd_update_nametag_attributes(video::SColor color)
{
std::ostringstream os(std::ios::binary);
// command
- writeU8(os, GENERIC_CMD_SET_NAMETAG_COLOR);
+ writeU8(os, GENERIC_CMD_UPDATE_NAMETAG_ATTRIBUTES);
// parameters
+ writeU8(os, 1); // version for forward compatibility
writeARGB8(os, color);
return os.str();
}