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).
This commit is contained in:
hiker 2016-08-05 17:22:04 +10:00
parent e039eb59c9
commit 40697ab5f7

View File

@ -228,6 +228,12 @@ public:
} // operator+= } // operator+=
// ------------------------------------------------------------------------ // ------------------------------------------------------------------------
/** Adds a floating point number */
BareNetworkString& add(float f)
{
return addFloat(f);
} // add
// ------------------------------------------------------------------------
/** Adds the xyz components of a Vec3 to the string. */ /** Adds the xyz components of a Vec3 to the string. */
BareNetworkString& add(const Vec3 &xyz) BareNetworkString& add(const Vec3 &xyz)
{ {