From b38fd1b57bf3e274575229aa4be431750cd49efb Mon Sep 17 00:00:00 2001 From: ac-stef Date: Sun, 23 Feb 2014 14:35:53 +0100 Subject: [PATCH] engine tweak: speeding up blockcopy/blockpaste used for dynlight, and that's realtime... --- source/src/worldlight.cpp | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/source/src/worldlight.cpp b/source/src/worldlight.cpp index 3cc71772..ac26be82 100644 --- a/source/src/worldlight.cpp +++ b/source/src/worldlight.cpp @@ -332,12 +332,13 @@ block *blockcopy(const block &s) { block *b = (block *)new uchar[sizeof(block)+s.xs*s.ys*sizeof(sqr)]; *b = s; - sqr *q = (sqr *)(b+1); - for(int y = s.y; y