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

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2023-08-20 20:48:18 +1000
committerKae <80987908+Novaenia@users.noreply.github.com>2023-08-20 20:48:18 +1000
commitecadfa7e44b4591d4e22f865d7d5fc904d8caf1d (patch)
tree14d01a789da304134459618a7305b2bccfa493ea
parent2fe62a178e3355700088d8e863af2b351c0e1c85 (diff)
Bump up prediction expiry time
Also added a new font
-rw-r--r--assets/opensb/font/newspaper.ttfbin0 -> 159124 bytes
-rw-r--r--source/game/StarWorldClient.cpp2
2 files changed, 1 insertions, 1 deletions
diff --git a/assets/opensb/font/newspaper.ttf b/assets/opensb/font/newspaper.ttf
new file mode 100644
index 0000000..c9bea16
--- /dev/null
+++ b/assets/opensb/font/newspaper.ttf
Binary files differ
diff --git a/source/game/StarWorldClient.cpp b/source/game/StarWorldClient.cpp
index b07e488..6f4c68d 100644
--- a/source/game/StarWorldClient.cpp
+++ b/source/game/StarWorldClient.cpp
@@ -1070,7 +1070,7 @@ void WorldClient::update(float dt) {
m_lightingCalculator.setMonochrome(Root::singleton().configuration()->get("monochromeLighting").toBool());
- float expireTime = min((float)m_latency + 100, 2000.f);
+ float expireTime = min(float(m_latency + 800), 2000.f);
auto now = Time::monotonicMilliseconds();
eraseWhere(m_predictedTiles, [&](auto& pair) {
float expiry = (float)(now - pair.second.time) / expireTime;