Sfoglia il codice sorgente

Fix scene loading with saved bg2 props (habeeb)

ghorsington 6 anni fa
parent
commit
6ca02fe034

+ 3 - 3
MultipleMaids/CM3D2/MultipleMaids/Plugin/MultipleMaids.Update.cs

@@ -4262,7 +4262,7 @@ namespace CM3D2.MultipleMaids.Plugin
                         string[] strArray8 = strArray6[index1].Split(',');
                         string str1 = strArray8[0].Replace(" ", "_");
                         GameObject original1 = (GameObject) null;
-                        bool flag1 = false;
+                        bool flag1 = true;
                         if (str1.Contains(".menu"))
                         {
                             string str2 = str1;
@@ -4548,11 +4548,11 @@ namespace CM3D2.MultipleMaids.Plugin
                             }
                             catch
                             {
-                                flag1 = true;
+                                flag1 = false;
                             }
                         }
 
-                        if (!flag1)
+                        if (flag1)
                         {
                             doguCnt = doguBObject.Count - 1;
                             gDogu[doguCnt] = GameObject.CreatePrimitive(PrimitiveType.Cube);

+ 12 - 0
MultipleMaids/CM3D2/MultipleMaids/Plugin/patch

@@ -0,0 +1,12 @@
+4265c4265
+<                         bool flag1 = false;
+---
+>                         bool flag1 = true;
+4551c4551
+<                                 flag1 = true;
+---
+>                                 flag1 = false;
+4555c4555
+<                         if (!flag1)
+---
+>                         if (flag1)