From 6f7f3800d3bf5dfca3bd05eb2636b4c3c5639100 Mon Sep 17 00:00:00 2001 From: Kae <80987908+Novaenia@users.noreply.github.com> Date: Thu, 31 Aug 2023 01:12:17 +1000 Subject: [PATCH] Don't forget to dirty collision on tile modification failure --- source/game/StarWorldClient.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/game/StarWorldClient.cpp b/source/game/StarWorldClient.cpp index 547c21d..b2eda12 100644 --- a/source/game/StarWorldClient.cpp +++ b/source/game/StarWorldClient.cpp @@ -854,7 +854,10 @@ void WorldClient::handleIncomingPackets(List const& packets) { if (placeMaterial->layer == TileLayer::Foreground) { p.foreground.reset(); p.foregroundHueShift.reset(); - p.collision.reset(); + if (p.collision) { + p.collision.reset(); + dirtyCollision(RectI::withSize(modification.first, { 1, 1 })); + } } else { p.background.reset();