From 18c2f16c138f4b40b4705507b46d24e1518e4705 Mon Sep 17 00:00:00 2001 From: TeTpaAka Date: Fri, 15 May 2015 21:46:56 +0200 Subject: Generalize core.get/set_nametag_color into core.get/set_nametag_attributes --- src/genericobject.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/genericobject.cpp') 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(); } -- cgit v1.2.3