Skip to content

Commit b8c33b0

Browse files
committed
1 parent b20a258 commit b8c33b0

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

Rising Stars/scripts/definitions/ABEM_version.as

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import version;
22
import CP_version;
33

44
// ABEMMOD's last revision was 724.
5-
const string MOD_REVISION = "1414";
5+
const string MOD_REVISION = "1415";
66
const array<string> VERSIONS = {
77
"v2.0.3",
88
"OpenSR v1.0.0",
@@ -22,6 +22,7 @@ const array<string> CP_VERSIONS = {
2222
const array<string> CP_REVISIONS = {
2323
"295",
2424
"296",
25+
"297",
2526
};
2627

2728
const string MOD_NAME = "Rising Stars v1.4.0";

Rising Stars/scripts/server/planets/SurfaceGrid.as

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1243,14 +1243,21 @@ tidy class SurfaceGrid : PlanetSurface {
12431243
}
12441244
}
12451245

1246-
void addSurfaceArea(const vec2i& addSize, array<uint8>& addBiomes, uint8 voidBiome = uint(-1), bool developed = false, bool vertical = false, const array<bool>@ devState = null) {
1246+
void addSurfaceArea(const vec2i& addedSize, array<uint8>& addBiomes, uint8 voidBiome = uint(-1), bool developed = false, bool vertical = false, const array<bool>@ devState = null) {
1247+
// Can't change the signature without potentially breaking downstream
1248+
// mods depending on this function, but this is not legal.
1249+
// It was never legal.
1250+
if(addedSize.width < 0 || addedSize.height < 0)
1251+
return;
1252+
12471253
array<uint8> oldBiomes = biomes;
12481254
array<uint8> oldFlags = flags;
12491255
array<SurfaceBuilding@> oldBuildings = tileBuildings;
12501256
vec2u oldSize = size;
12511257
if(voidBiome == uint(-1))
12521258
voidBiome = baseBiome.id;
12531259
delta = true;
1260+
vec2u addSize = vec2u(uint(addedSize.width), uint(addedSize.height));
12541261

12551262
if(vertical) {
12561263
size.y += addSize.y;

0 commit comments

Comments
 (0)