We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d0c3a88 commit 5391a31Copy full SHA for 5391a31
1 file changed
src/Engine.cpp
@@ -172,7 +172,7 @@ std::string Engine::executeNetwork(std::string in) {
172
}
173
174
bool Engine::needsUpdate() {
175
- return (!world.paused) && (fastticks || !backend->ticks() || (backend->ticks() > (tickdata + world.ticktime)));
+ return fastticks || !backend->ticks() || (backend->ticks() > (tickdata + world.ticktime));
176
177
178
unsigned int Engine::msUntilTick() {
@@ -235,9 +235,11 @@ bool Engine::tick() {
235
236
// tick+draw the world, if necessary
237
bool needupdate = needsUpdate();
238
- if (needupdate)
239
- update();
240
- drawWorld();
+ if (needupdate) {
+ if (!world.paused)
+ update();
241
+ drawWorld();
242
+ }
243
244
processEvents();
245
if (needupdate)
0 commit comments