summaryrefslogtreecommitdiff
path: root/src/openttd.cpp
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2008-09-16 20:57:49 +0000
committersmatz <smatz@openttd.org>2008-09-16 20:57:49 +0000
commit7ae255a553aa6c970bc2b68abbe395c42638aaca (patch)
tree9ebff093300fc9e6d80ace96bf9b70e7f6227c8e /src/openttd.cpp
parentc9983422064228ef404cb7a3b5b149a1c4a82c0b (diff)
downloadopenttd-7ae255a553aa6c970bc2b68abbe395c42638aaca.tar.xz
(svn r14348) -Fix (r1667): signs were not updated on company bankrupcy/sell, they have colour of invalid player
Diffstat (limited to 'src/openttd.cpp')
-rw-r--r--src/openttd.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/openttd.cpp b/src/openttd.cpp
index 23c2b81ce..1b690e2a2 100644
--- a/src/openttd.cpp
+++ b/src/openttd.cpp
@@ -2560,6 +2560,13 @@ bool AfterLoadGame()
}
}
+ if (CheckSavegameVersion(103)) {
+ /* signs with invalid owner left from older savegames */
+ Sign *si;
+ FOR_ALL_SIGNS(si) {
+ if (si->owner != OWNER_NONE && !IsValidPlayerID(si->owner)) si->owner = OWNER_NONE;
+ }
+ }
GamelogPrintDebug(1);