From 40697ab5f7304c3bda260e73ea0722f8bf07e73f Mon Sep 17 00:00:00 2001 From: hiker Date: Fri, 5 Aug 2016 17:22:04 +1000 Subject: [PATCH] Bugfix for rewind: previously for a floating point value f add(f) would actually call add(Vec3(f)), which adds a vector (f,f,f). --- src/network/network_string.hpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/network/network_string.hpp b/src/network/network_string.hpp index 628b1ae56..0c521107a 100644 --- a/src/network/network_string.hpp +++ b/src/network/network_string.hpp @@ -228,6 +228,12 @@ public: } // operator+= // ------------------------------------------------------------------------ + /** Adds a floating point number */ + BareNetworkString& add(float f) + { + return addFloat(f); + } // add + // ------------------------------------------------------------------------ /** Adds the xyz components of a Vec3 to the string. */ BareNetworkString& add(const Vec3 &xyz) {