summaryrefslogtreecommitdiff
path: root/src/oldloader.cpp
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2009-01-03 17:11:52 +0000
committersmatz <smatz@openttd.org>2009-01-03 17:11:52 +0000
commitafef22e3e7caeb41d94115bfd000b4cce68e430d (patch)
tree1b6c7083c14efc8630c4839005e7b1c3c4610160 /src/oldloader.cpp
parent6512d717e168fd1a5253a7ebe31e772824131de7 (diff)
downloadopenttd-afef22e3e7caeb41d94115bfd000b4cce68e430d.tar.xz
(svn r14812) -Codechange: use INVALID_TILE instead of 0 to mark company without HQ
Diffstat (limited to 'src/oldloader.cpp')
-rw-r--r--src/oldloader.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/oldloader.cpp b/src/oldloader.cpp
index cb55afc50..2a02f069e 100644
--- a/src/oldloader.cpp
+++ b/src/oldloader.cpp
@@ -1015,13 +1015,11 @@ static bool LoadOldCompany(LoadgameState *ls, int num)
* was always 893288 pounds. In the newer versions this is correct,
* but correct for those oldies
* Ps: this also means that if you had exact 893288 pounds, you will go back
- * to 10000.. this is a very VERY small chance ;) */
+ * to 100000.. this is a very VERY small chance ;) */
if (c->money == 893288) c->money = c->current_loan = 100000;
_company_colours[num] = c->colour;
c->inaugurated_year -= ORIGINAL_BASE_YEAR;
- if (c->location_of_HQ == 0xFFFF)
- c->location_of_HQ = 0;
/* State 20 for AI companies is sell vehicle. Since the AI struct is not
* really figured out as of now, _companies_ai[c->index].cur_veh; needed for 'sell vehicle'