From b30f16d7c9a832ed09b5cd03d73f343f933ca872 Mon Sep 17 00:00:00 2001 From: LaG1924 <12997935+LaG1924@users.noreply.github.com> Date: Wed, 28 Mar 2018 19:21:50 +0500 Subject: Minor Section optimizations --- src/RendererSectionData.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/RendererSectionData.cpp') diff --git a/src/RendererSectionData.cpp b/src/RendererSectionData.cpp index 96d78e0..6554d16 100644 --- a/src/RendererSectionData.cpp +++ b/src/RendererSectionData.cpp @@ -213,7 +213,7 @@ RendererSectionData ParseSection(const SectionsData §ions) } unsigned char SectionsData::GetLight(const Vector & pos) const { - const Vector directions[] = { + static const Vector directions[] = { Vector(0,0,0), Vector(1,0,0), Vector(-1,0,0), @@ -252,7 +252,7 @@ unsigned char SectionsData::GetLight(const Vector & pos) const { } unsigned char SectionsData::GetSkyLight(const Vector & pos) const { - const Vector directions[] = { + static const Vector directions[] = { Vector(0,0,0), Vector(1,0,0), Vector(-1,0,0), -- cgit v1.2.3