aboutsummaryrefslogtreecommitdiff
path: root/extension/src/LoadGameOpenVic.cpp
diff options
context:
space:
mode:
author Hop311 <hop3114@gmail.com>2023-09-14 09:52:08 +0200
committer Hop311 <hop3114@gmail.com>2023-09-14 09:52:08 +0200
commit9dc8c3c89a86b8be2084890f3207adc6c9cda496 (patch)
treeaf5fcc9e7122813446318957a66da940d09b6f36 /extension/src/LoadGameOpenVic.cpp
parentc715187bffa8c84428acf3631e3d03c088a719d9 (diff)
Move province csv load to SIM + remove return_t
Diffstat (limited to 'extension/src/LoadGameOpenVic.cpp')
-rw-r--r--extension/src/LoadGameOpenVic.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/extension/src/LoadGameOpenVic.cpp b/extension/src/LoadGameOpenVic.cpp
index 3d3d6c5..fafc864 100644
--- a/extension/src/LoadGameOpenVic.cpp
+++ b/extension/src/LoadGameOpenVic.cpp
@@ -86,8 +86,8 @@ Error GameSingleton::_load_map_images(String const& province_image_path, String
if (err != OK) return err;
// Generate interleaved province and terrain ID image
- if (game_manager.map.generate_province_shape_image(province_dims.x, province_dims.y, province_image->get_data().ptr(),
- terrain_image->get_data().ptr(), terrain_variant_map, false) != SUCCESS) err = FAILED;
+ if (!game_manager.map.generate_province_shape_image(province_dims.x, province_dims.y, province_image->get_data().ptr(),
+ terrain_image->get_data().ptr(), terrain_variant_map, false)) err = FAILED;
static constexpr int32_t GPU_DIM_LIMIT = 0x3FFF;
// For each dimension of the image, this finds the small number of equal subdivisions required get the individual texture dims under GPU_DIM_LIMIT