From adb86a75dac91a210149fc28b1dbf5225896f66c Mon Sep 17 00:00:00 2001 From: Tiger Wang Date: Wed, 29 Jul 2020 20:15:09 +0100 Subject: Do not GetBlock individually in simulators * Have the simulator manager get the block and pass it on + Add new overload for WakeUp, called when the manager wakes face positions --- src/Simulator/SimulatorManager.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Simulator/SimulatorManager.h') diff --git a/src/Simulator/SimulatorManager.h b/src/Simulator/SimulatorManager.h index b5f54381c..4594bd7d6 100644 --- a/src/Simulator/SimulatorManager.h +++ b/src/Simulator/SimulatorManager.h @@ -38,8 +38,8 @@ public: /** Called in each tick for each chunk, a_Dt is the time passed since the last tick, in msec; direct access to chunk data available. */ void SimulateChunk(std::chrono::milliseconds a_DT, int a_ChunkX, int a_ChunkZ, cChunk * a_Chunk); - /* Called when a single block changes, wakes all simulators up for the block. - The simulator implementation may also decide to wake the block's face-neighbors or blocks farther away. */ + /* Called when a single block changes, wakes all simulators up for the block and its face-neighbors. + The simulator implementation may also decide to wake blocks farther away. */ void WakeUp(cChunk & a_Chunk, Vector3i a_Position); /** Does the same processing as WakeUp, but for all blocks within the specified area. -- cgit v1.2.3