X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fnetradiant.git;a=blobdiff_plain;f=plugins%2Fentity%2Frotation.h;h=d6b00d71853072879643059ec8592a852721bebf;hp=4c566d96f420dd5264a6f509b3920160543c791f;hb=a333eaee1c5b8b20ec59411f4878f8fc5bdfa584;hpb=f8783749e760415506b4889ee7a970e876d0cb49 diff --git a/plugins/entity/rotation.h b/plugins/entity/rotation.h index 4c566d96..d6b00d71 100644 --- a/plugins/entity/rotation.h +++ b/plugins/entity/rotation.h @@ -24,11 +24,12 @@ #include "ientity.h" -#include "stream/stringstream.h" #include "math/quaternion.h" #include "generic/callback.h" #include "stringio.h" +#include + #include "angle.h" typedef float Float9[9]; @@ -58,7 +59,7 @@ inline void write_rotation( const Float9 rotation, Entity* entity, const char* k } else { - StringOutputStream value( 256 ); + std::ostringstream value; value << rotation[0] << ' ' << rotation[1] << ' ' << rotation[2] << ' ' @@ -68,7 +69,7 @@ inline void write_rotation( const Float9 rotation, Entity* entity, const char* k << rotation[6] << ' ' << rotation[7] << ' ' << rotation[8]; - entity->setKeyValue( key, value.c_str() ); + entity->setKeyValue( key, value.str().c_str() ); } } inline void read_rotation( Float9 rotation, const char* value ){