summaryrefslogtreecommitdiff
path: root/games/fgrun/fgrun-1.6.2-fix-reloadpath-logic.patch
blob: 0fb90069281daadbcf64decc0f00251de528c7c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
--- fgrun-1.6.2/src/wizard_funcs.cxx.orig	2012-09-11 14:57:53.176639212 +0200
+++ fgrun-1.6.2/src/wizard_funcs.cxx	2012-09-11 15:11:35.995000085 +0200
@@ -296,7 +296,7 @@
     {
         fg_scenery = buf;
     }
-    else if (reloadPath && systemPrefs.get( "fg_scenery", buf, "", buflen-1))
+    else if (systemPrefs.get( "fg_scenery", buf, "", buflen-1))
     {
         fg_scenery = buf;
         prefs.set("fg_scenery", buf);
@@ -338,7 +338,7 @@
     {
         ts_dir = iVal;
     }
-    else if (reloadPath && systemPrefs.get("ts_dir", iVal, 0))
+    else if (systemPrefs.get("ts_dir", iVal, 0))
     {
         prefs.set("ts_dir", ts_dir);
         systemPrefs.get("ts_dir_init", iVal, 0);
@@ -353,7 +353,7 @@
     {
         ts_exe_->value(buf);
     }
-    else if (reloadPath && systemPrefs.get( "ts_exe", buf, "", buflen-1))
+    else if (systemPrefs.get( "ts_exe", buf, "", buflen-1))
     {
         ts_exe_->value( buf );
         prefs.set("ts_exe", buf);