Skip to content

Commit 3606f97

Browse files
committed
Fixed crash when using large map seed values
1 parent 46b4f68 commit 3606f97

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

changelog.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
---------------------------------------------------------------------------------------------------
2+
Version: 2.0.12
3+
Date: 2025-04-19
4+
Bugfixes:
5+
- Fixed crash when using large map seed values.
6+
---------------------------------------------------------------------------------------------------
27
Version: 2.0.11
38
Date: 2025-04-19
49
Locale:

city-planner.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ local function addCity(position, surface_index, predefinedCityName, existing_tow
283283
table.insert(storage.tycoon_cities, {
284284
id = cityId,
285285
surface_index = surface_index,
286-
generator = game.create_random_generator(game.surfaces[surface_index].map_gen_settings.seed + generatorSalt),
286+
generator = game.create_random_generator((game.surfaces[surface_index].map_gen_settings.seed + generatorSalt) % 4294967296),
287287
grid = {},
288288
pending_cells = {},
289289
priority_buildings = {},

0 commit comments

Comments
 (0)