diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2025-04-30 12:55:25 +1000 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2025-04-30 12:55:25 +1000 |
commit | 46edf8d0018e8bbbe62373c5c69c0ff9e8cea2b3 (patch) | |
tree | 999761448e0101efa4eae1dd00417726068e712d /source/game | |
parent | d3d4345e057d95d784e34be9b23e7fe07fb9a7c1 (diff) |
bump protocol version for applyDamage
Diffstat (limited to 'source/game')
-rw-r--r-- | source/game/StarNetPackets.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/source/game/StarNetPackets.cpp b/source/game/StarNetPackets.cpp index a121beb..953743c 100644 --- a/source/game/StarNetPackets.cpp +++ b/source/game/StarNetPackets.cpp @@ -764,13 +764,17 @@ ReplaceTileListPacket::ReplaceTileListPacket(TileModificationList modifications, void ReplaceTileListPacket::read(DataStream& ds) { ds.readContainer(modifications); ds.read(tileDamage); - ds.read(applyDamage); + if (ds.streamCompatibilityVersion() >= 7) + ds.read(applyDamage); + else + applyDamage = false; } void ReplaceTileListPacket::write(DataStream& ds) const { ds.writeContainer(modifications); ds.write(tileDamage); - ds.write(applyDamage); + if (ds.streamCompatibilityVersion() >= 7) + ds.write(applyDamage); } DamageTileGroupPacket::DamageTileGroupPacket() : layer(TileLayer::Foreground) {} |