summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2006-01-30 14:50:55 +0000
committerpeter1138 <peter1138@openttd.org>2006-01-30 14:50:55 +0000
commit876813cd9d07b1e1d2525cb697444fedcde3cc0f (patch)
treef14686406c1806a31e0518242f4d9e650cca5eb5
parent61a7b45dd92d1af8f8266e171779e1c43f9f53f7 (diff)
downloadopenttd-876813cd9d07b1e1d2525cb697444fedcde3cc0f.tar.xz
(svn r3486) - NewGRF fix: Always reinitialize the ttdpatch flags as patch settings may have changed.
-rw-r--r--newgrf.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/newgrf.c b/newgrf.c
index 0adf1af72..ae6de3d26 100644
--- a/newgrf.c
+++ b/newgrf.c
@@ -2710,13 +2710,9 @@ static void LoadNewGRFFile(const char* filename, uint file_index, uint stage)
void LoadNewGRF(uint load_index, uint file_index)
{
- static bool initialized = false; // XXX yikes
uint stage;
- if (!initialized) {
- InitializeGRFSpecial();
- initialized = true;
- }
+ InitializeGRFSpecial();
ResetNewGRFData();