Skip to content

Commit 57a7219

Browse files
Apply suggestions from code review
Co-authored-by: Rami Pasanen <rampastring@outlook.com>
1 parent 7331b40 commit 57a7219

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/TSMapEditor/Initialization/MapLoader.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1112,7 +1112,7 @@ public static void ReadAITriggerTypes(IMap map, IniFile mapIni)
11121112
if (aiTrigger == null)
11131113
continue;
11141114

1115-
aiTrigger.Enabled = Conversions.BooleanFromString(kvp.Value, true);
1115+
aiTrigger.Enabled = Conversions.BooleanFromString(kvp.Value, aiTrigger.Enabled);
11161116
}
11171117

11181118
Logger.Log("AITriggerTypesEnable read successfully.");

src/TSMapEditor/Models/AITriggerType.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public AITriggerType(string iniName)
9191
public bool Easy { get; set; } = true;
9292
public bool Medium { get; set; } = true;
9393
public bool Hard { get; set; } = true;
94-
public bool Enabled { get; set; } = false;
94+
public bool Enabled { get; set; } = true;
9595

9696
public AITriggerType Clone(string newUniqueId)
9797
{

0 commit comments

Comments
 (0)