Make sure that structure IDs are never zero for converted maps. Fixes ticket:2833

master
Per Inge Mathisen 2011-07-31 22:49:55 +02:00
parent bc26936424
commit ca8595f25a
10 changed files with 19 additions and 18 deletions

View File

@ -1,6 +1,6 @@
[structure_0000]
id = 0
[structure_4275817112]
id = 4275817112
position = 4800, 13248, 112
rotation = 0, 0, 0
name = PillBox1

View File

@ -1,6 +1,6 @@
[structure_0000]
id = 0
[structure_4275817112]
id = 4275817112
position = 768, 1024, 94
rotation = 0, 0, 0
name = A0CommandCentre

View File

@ -1,6 +1,6 @@
[structure_0000]
id = 0
[structure_4275817112]
id = 4275817112
position = 2688, 13440, 148
rotation = 0, 0, 0
name = A0CommandCentre

View File

@ -1,6 +1,6 @@
[structure_0000]
id = 0
[structure_4275817112]
id = 4275817112
position = 3648, 21312, 81
rotation = 0, 0, 0
name = A0HardcreteMk1Wall

View File

@ -1,6 +1,6 @@
[structure_0000]
id = 0
[structure_4275817112]
id = 4275817112
position = 6784, 4096, 23
rotation = 0, 0, 0
name = A0ComDroidControl

View File

@ -1,6 +1,6 @@
[structure_0000]
id = 0
[structure_4275817112]
id = 4275817112
position = 3008, 15552, 132
rotation = 0, 0, 0
name = A0LightFactory

View File

@ -1,6 +1,6 @@
[structure_0000]
id = 0
[structure_4275817112]
id = 4275817112
position = 2560, 1280, 324
rotation = 0, 0, 0
name = A0CommandCentre

View File

@ -1,6 +1,6 @@
[structure_0000]
id = 0
[structure_4275817112]
id = 4275817112
position = 12416, 22784, 226
rotation = 0, 0, 0
name = A0PowerGenerator

View File

@ -1,6 +1,6 @@
[structure_0000]
id = 0
[structure_4275817112]
id = 4275817112
position = 17216, 6080, 0
rotation = 0, 0, 0
name = A0LightFactory

View File

@ -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);