summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2005-01-10 19:08:25 +0000
committertruelight <truelight@openttd.org>2005-01-10 19:08:25 +0000
commit472dabbd1b715836d641230c9d4057caabc9e359 (patch)
tree675648f848b65b001743851f12d5ca8c329310c7
parent91a75191a2505a06a329419b4de2148ddee1de5f (diff)
downloadopenttd-472dabbd1b715836d641230c9d4057caabc9e359.tar.xz
(svn r1468) -Fix: really old maps do load again (Darkvater / TrueLight)
-rw-r--r--oldloader.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/oldloader.c b/oldloader.c
index e8c93b62a..51320a6ad 100644
--- a/oldloader.c
+++ b/oldloader.c
@@ -590,6 +590,9 @@ static void FixTown(OldTown *o, int num, byte town_name_type)
uint i = 0;
do {
+ if (o->xy == 0)
+ continue;
+
t = GetTown(i);
t->xy = o->xy;
@@ -636,6 +639,9 @@ static void FixIndustry(OldIndustry *o, int num)
uint j = 0;
do {
+ if (o->xy == 0)
+ continue;
+
i = GetIndustry(j);
i->xy = o->xy;
@@ -696,6 +702,9 @@ static void FixStation(OldStation *o, int num)
uint i = 0;
do {
+ if (o->xy == 0)
+ continue;
+
s = GetStation(i);
s->xy = o->xy;
@@ -745,6 +754,9 @@ static void FixVehicle(OldVehicle *o, int num)
uint i = 0;
do {
+ if (o->type == 0)
+ continue;
+
n = GetVehicle(i);
n->type = o->type;