Network: Update state checksum with DoCommandP costs

pull/590/head
Jonathan G Rennison 9 months ago
parent cdf1ff8d5a
commit 82c9d18b5b

@ -35,6 +35,7 @@
#include "debug_desync.h"
#include "order_backup.h"
#include "core/ring_buffer.hpp"
#include "core/checksum_func.hpp"
#include <array>
#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();

Loading…
Cancel
Save