moved draw_sky out of #if

This commit is contained in:
Zeno Rogue 2021-09-04 21:58:45 +02:00
parent f87e3b3dce
commit 46f2fa4f9a
1 changed files with 2 additions and 2 deletions

View File

@ -5,6 +5,8 @@ namespace hr {
EX bool context_fog = true;
EX ld camera_level;
EX bool draw_sky = true;
#if MAXMDIM >= 4 && CAP_GL
EX int get_skybrightness(int mul IS(1)) {
@ -52,8 +54,6 @@ vector<glhr::colored_vertex> skyvertices;
cell *sky_centerover;
shiftmatrix sky_cview;
EX bool draw_sky = true;
void compute_skyvertices(const vector<sky_item>& sky) {
skyvertices.clear();
if(!draw_sky) return;