medfall

A super great game engine
Log | Files | Refs

commit 8aa23b1683929447421d7be86393a7d9fdaed650
parent eaf4ae47482574012bb5c211a2c6531f47d43b8e
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Sat,  4 Nov 2017 16:09:51 +0200

constexpr

Diffstat:
clipmap.cc | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/clipmap.cc b/clipmap.cc @@ -22,8 +22,8 @@ struct ClipmapTerrain { static ClipmapTerrain clipmap; -static u32 PATCH_RESOLUTION = 48; -static u32 NUM_LODS = 7; +static constexpr u32 PATCH_RESOLUTION = 48; +static constexpr u32 NUM_LODS = 7; static size_t patch2d( size_t x, size_t y ) { return y * ( PATCH_RESOLUTION + 1 ) + x;