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

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2024-03-25 06:29:13 +1100
committerKae <80987908+Novaenia@users.noreply.github.com>2024-03-25 06:29:13 +1100
commit8899a1d27016880708783f9452cb010d8111fe82 (patch)
treec0d3c45473830698af12a612940a3328fbc92a6f
parent560ae08424956bb495bc2453973467d138029c7c (diff)
make tech parentOffset interpolated
-rw-r--r--source/base/StarAssets.cpp2
-rw-r--r--source/core/StarZSTDCompression.cpp2
-rw-r--r--source/game/StarTechController.cpp2
3 files changed, 3 insertions, 3 deletions
diff --git a/source/base/StarAssets.cpp b/source/base/StarAssets.cpp
index 9718ec8..f1c1009 100644
--- a/source/base/StarAssets.cpp
+++ b/source/base/StarAssets.cpp
@@ -141,7 +141,7 @@ Assets::Assets(Settings settings, StringList assetSources) {
});
if (newFiles) {
- callbacks.registerCallback("add", [this, &newFiles](LuaEngine& engine, String const& path, LuaValue const& data) {
+ callbacks.registerCallback("add", [&newFiles](LuaEngine& engine, String const& path, LuaValue const& data) {
ByteArray bytes;
if (auto str = engine.luaMaybeTo<String>(data))
bytes = ByteArray(str->utf8Ptr(), str->utf8Size());
diff --git a/source/core/StarZSTDCompression.cpp b/source/core/StarZSTDCompression.cpp
index 5c66c9a..5f2c385 100644
--- a/source/core/StarZSTDCompression.cpp
+++ b/source/core/StarZSTDCompression.cpp
@@ -13,7 +13,6 @@ CompressionStream::CompressionStream() : m_cStream(ZSTD_createCStream()) {
CompressionStream::~CompressionStream() { ZSTD_freeCStream(m_cStream); }
ByteArray CompressionStream::compress(const char* in, size_t inLen) {
- size_t const cInSize = ZSTD_CStreamInSize ();
size_t const cOutSize = ZSTD_CStreamOutSize();
ZSTD_inBuffer inBuffer = {in, inLen, 0};
size_t written = 0;
@@ -47,7 +46,6 @@ DecompressionStream::DecompressionStream() : m_dStream(ZSTD_createDStream()) {
DecompressionStream::~DecompressionStream() { ZSTD_freeDStream(m_dStream); }
ByteArray DecompressionStream::decompress(const char* in, size_t inLen) {
- size_t const dInSize = ZSTD_DStreamInSize ();
size_t const dOutSize = ZSTD_DStreamOutSize();
ZSTD_inBuffer inBuffer = {in, inLen, 0};
size_t written = 0;
diff --git a/source/game/StarTechController.cpp b/source/game/StarTechController.cpp
index 4ead428..90926de 100644
--- a/source/game/StarTechController.cpp
+++ b/source/game/StarTechController.cpp
@@ -58,6 +58,8 @@ TechController::TechController() {
m_xParentOffset.setFixedPointBase(0.003125);
m_yParentOffset.setFixedPointBase(0.003125);
+ m_xParentOffset.setInterpolator(lerp<float, float>);
+ m_yParentOffset.setInterpolator(lerp<float, float>);
}
Json TechController::diskStore() {