Network: Update state checksum with DoCommandP costs
This commit is contained in:
@@ -35,6 +35,7 @@
|
|||||||
#include "debug_desync.h"
|
#include "debug_desync.h"
|
||||||
#include "order_backup.h"
|
#include "order_backup.h"
|
||||||
#include "core/ring_buffer.hpp"
|
#include "core/ring_buffer.hpp"
|
||||||
|
#include "core/checksum_func.hpp"
|
||||||
#include <array>
|
#include <array>
|
||||||
|
|
||||||
#include "table/strings.h"
|
#include "table/strings.h"
|
||||||
@@ -1256,6 +1257,7 @@ CommandCost DoCommandPInternal(TileIndex tile, uint32 p1, uint32 p2, uint64 p3,
|
|||||||
}
|
}
|
||||||
|
|
||||||
SubtractMoneyFromCompany(res2);
|
SubtractMoneyFromCompany(res2);
|
||||||
|
if (_networking) UpdateStateChecksum(res2.GetCost());
|
||||||
|
|
||||||
/* update signals if needed */
|
/* update signals if needed */
|
||||||
UpdateSignalsInBuffer();
|
UpdateSignalsInBuffer();
|
||||||
|
Reference in New Issue
Block a user