Make sure that structure IDs are never zero for converted maps. Fixes ticket:2833
parent
bc26936424
commit
ca8595f25a
|
@ -1,6 +1,6 @@
|
|||
|
||||
[structure_0000]
|
||||
id = 0
|
||||
[structure_4275817112]
|
||||
id = 4275817112
|
||||
position = 4800, 13248, 112
|
||||
rotation = 0, 0, 0
|
||||
name = PillBox1
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
|
||||
[structure_0000]
|
||||
id = 0
|
||||
[structure_4275817112]
|
||||
id = 4275817112
|
||||
position = 768, 1024, 94
|
||||
rotation = 0, 0, 0
|
||||
name = A0CommandCentre
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
|
||||
[structure_0000]
|
||||
id = 0
|
||||
[structure_4275817112]
|
||||
id = 4275817112
|
||||
position = 2688, 13440, 148
|
||||
rotation = 0, 0, 0
|
||||
name = A0CommandCentre
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
|
||||
[structure_0000]
|
||||
id = 0
|
||||
[structure_4275817112]
|
||||
id = 4275817112
|
||||
position = 3648, 21312, 81
|
||||
rotation = 0, 0, 0
|
||||
name = A0HardcreteMk1Wall
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
|
||||
[structure_0000]
|
||||
id = 0
|
||||
[structure_4275817112]
|
||||
id = 4275817112
|
||||
position = 6784, 4096, 23
|
||||
rotation = 0, 0, 0
|
||||
name = A0ComDroidControl
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
|
||||
[structure_0000]
|
||||
id = 0
|
||||
[structure_4275817112]
|
||||
id = 4275817112
|
||||
position = 3008, 15552, 132
|
||||
rotation = 0, 0, 0
|
||||
name = A0LightFactory
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
|
||||
[structure_0000]
|
||||
id = 0
|
||||
[structure_4275817112]
|
||||
id = 4275817112
|
||||
position = 2560, 1280, 324
|
||||
rotation = 0, 0, 0
|
||||
name = A0CommandCentre
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
|
||||
[structure_0000]
|
||||
id = 0
|
||||
[structure_4275817112]
|
||||
id = 4275817112
|
||||
position = 12416, 22784, 226
|
||||
rotation = 0, 0, 0
|
||||
name = A0PowerGenerator
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
|
||||
[structure_0000]
|
||||
id = 0
|
||||
[structure_4275817112]
|
||||
id = 4275817112
|
||||
position = 17216, 6080, 0
|
||||
rotation = 0, 0, 0
|
||||
name = A0LightFactory
|
||||
|
|
|
@ -237,6 +237,7 @@ int main(int argc, char **argv)
|
|||
continue; // do not write modules as separate entries
|
||||
}
|
||||
|
||||
if (psObj->id == 0) psObj->id = 0xFEDBCA98; // fix broken ID
|
||||
MADD("\n[structure_%04u]", psObj->id);
|
||||
MADD("id = %u", psObj->id);
|
||||
MADD("position = %u, %u, %u", psObj->x, psObj->y, psObj->z);
|
||||
|
|
Loading…
Reference in New Issue