From a5c5a7b56baca086878490cccd9aba749885009c Mon Sep 17 00:00:00 2001 From: Relintai Date: Tue, 24 Mar 2020 16:56:04 +0100 Subject: [PATCH] Remove -std=c++11 cppflag as it!s not needed. Also compile fix for msvc. --- SCsub | 2 -- meshers/transvoxel_uv_mesher/voxel_mesher_transvoxel.cpp | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/SCsub b/SCsub index df55442..f4de6ff 100644 --- a/SCsub +++ b/SCsub @@ -7,8 +7,6 @@ module_env = env.Clone() if os.path.isdir('../mesh_data_resource'): module_env.Append(CPPDEFINES=['MESH_DATA_RESOURCE_PRESENT']) -module_env.Append(CPPFLAGS=["-std=c++11"]) - sources = [ "register_types.cpp", diff --git a/meshers/transvoxel_uv_mesher/voxel_mesher_transvoxel.cpp b/meshers/transvoxel_uv_mesher/voxel_mesher_transvoxel.cpp index 49cacf5..d177aec 100644 --- a/meshers/transvoxel_uv_mesher/voxel_mesher_transvoxel.cpp +++ b/meshers/transvoxel_uv_mesher/voxel_mesher_transvoxel.cpp @@ -169,7 +169,7 @@ void VoxelMesherTransvoxel::_add_chunk(Node *p_chunk) { get_voxel_type_array(type_arr, chunk, x, y, z, lod_size); int case_code = get_case_code_from_arr(type_arr); - if (case_code == 0 or case_code == 255) { + if (case_code == 0 || case_code == 255) { continue; }