From 82c9d18b5b047c44d9341aea3af597cb275c7abf Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Mon, 28 Aug 2023 19:52:02 +0100 Subject: [PATCH] Network: Update state checksum with DoCommandP costs --- src/command.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/command.cpp b/src/command.cpp index 3a82635954..60aee30349 100644 --- a/src/command.cpp +++ b/src/command.cpp @@ -35,6 +35,7 @@ #include "debug_desync.h" #include "order_backup.h" #include "core/ring_buffer.hpp" +#include "core/checksum_func.hpp" #include #include "table/strings.h" @@ -1256,6 +1257,7 @@ CommandCost DoCommandPInternal(TileIndex tile, uint32 p1, uint32 p2, uint64 p3, } SubtractMoneyFromCompany(res2); + if (_networking) UpdateStateChecksum(res2.GetCost()); /* update signals if needed */ UpdateSignalsInBuffer();