Skip to content

Commit ca8595f

Browse files
committed
Make sure that structure IDs are never zero for converted maps. Fixes ticket:2833
1 parent bc26936 commit ca8595f

File tree

10 files changed

+19
-18
lines changed

10 files changed

+19
-18
lines changed

data/base/multiplay/maps/2c-startup/struct.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

2-
[structure_0000]
3-
id = 0
2+
[structure_4275817112]
3+
id = 4275817112
44
position = 4800, 13248, 112
55
rotation = 0, 0, 0
66
name = PillBox1

data/base/multiplay/maps/4c-basingstoke/struct.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

2-
[structure_0000]
3-
id = 0
2+
[structure_4275817112]
3+
id = 4275817112
44
position = 768, 1024, 94
55
rotation = 0, 0, 0
66
name = A0CommandCentre

data/base/multiplay/maps/4c-littleegypt/struct.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

2-
[structure_0000]
3-
id = 0
2+
[structure_4275817112]
3+
id = 4275817112
44
position = 2688, 13440, 148
55
rotation = 0, 0, 0
66
name = A0CommandCentre

data/base/multiplay/maps/4c-rollinghills/struct.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

2-
[structure_0000]
3-
id = 0
2+
[structure_4275817112]
3+
id = 4275817112
44
position = 3648, 21312, 81
55
rotation = 0, 0, 0
66
name = A0HardcreteMk1Wall

data/base/multiplay/maps/8c-bananas/struct.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

2-
[structure_0000]
3-
id = 0
2+
[structure_4275817112]
3+
id = 4275817112
44
position = 6784, 4096, 23
55
rotation = 0, 0, 0
66
name = A0ComDroidControl

data/base/multiplay/maps/8c-beggarskanyon/struct.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

2-
[structure_0000]
3-
id = 0
2+
[structure_4275817112]
3+
id = 4275817112
44
position = 3008, 15552, 132
55
rotation = 0, 0, 0
66
name = A0LightFactory

data/base/multiplay/maps/8c-mizamaze/struct.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

2-
[structure_0000]
3-
id = 0
2+
[structure_4275817112]
3+
id = 4275817112
44
position = 2560, 1280, 324
55
rotation = 0, 0, 0
66
name = A0CommandCentre

data/base/multiplay/maps/8c-thepit/struct.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

2-
[structure_0000]
3-
id = 0
2+
[structure_4275817112]
3+
id = 4275817112
44
position = 12416, 22784, 226
55
rotation = 0, 0, 0
66
name = A0PowerGenerator

data/base/multiplay/maps/8c-yinyang/struct.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

2-
[structure_0000]
3-
id = 0
2+
[structure_4275817112]
3+
id = 4275817112
44
position = 17216, 6080, 0
55
rotation = 0, 0, 0
66
name = A0LightFactory

tools/map/mapconv.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,7 @@ int main(int argc, char **argv)
237237
continue; // do not write modules as separate entries
238238
}
239239

240+
if (psObj->id == 0) psObj->id = 0xFEDBCA98; // fix broken ID
240241
MADD("\n[structure_%04u]", psObj->id);
241242
MADD("id = %u", psObj->id);
242243
MADD("position = %u, %u, %u", psObj->x, psObj->y, psObj->z);

0 commit comments

Comments
 (0)