Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/game/StarDrawable.cpp
diff options
context:
space:
mode:
authorLDA <lda@ldasuku.net>2023-06-26 11:48:27 -0700
committerLDA <lda@ldasuku.net>2023-06-26 11:58:35 -0700
commitc9e889723b7af832322d178975e6e440d6cd3ae5 (patch)
treea8429c30ecf46ed1388df13b614141e73973cd9f /source/game/StarDrawable.cpp
parent4585c9cafa87cad6b54397af7e9375cc31b72f89 (diff)
resolved most of the compiler warnings/errors under gcc
also update xxhash and tinyformat
Diffstat (limited to 'source/game/StarDrawable.cpp')
-rw-r--r--source/game/StarDrawable.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/game/StarDrawable.cpp b/source/game/StarDrawable.cpp
index 90b36c5..c7311ae 100644
--- a/source/game/StarDrawable.cpp
+++ b/source/game/StarDrawable.cpp
@@ -154,7 +154,7 @@ Json Drawable::toJson() const {
json.set("color", jsonFromColor(color));
json.set("fullbright", fullbright);
- return move(json);
+ return json;
}
void Drawable::translate(Vec2F const& translation) {
@@ -270,13 +270,13 @@ DataStream& operator<<(DataStream& ds, Drawable::PolyPart const& poly) {
// I need to find out if this is for network serialization or not eventually
DataStream& operator>>(DataStream& ds, Drawable::ImagePart& image) {
- ds >> AssetPath::join(image.image);
+ ds >> image.image;
ds >> image.transformation;
return ds;
}
DataStream& operator<<(DataStream& ds, Drawable::ImagePart const& image) {
- ds << AssetPath::join(image.image);
+ ds << image.image;
ds << image.transformation;
return ds;
}