From a412455df2601485e74840c6b6b218bd1957883b Mon Sep 17 00:00:00 2001 From: Doublestrike Date: Tue, 24 Jan 2012 11:32:42 +0000 Subject: [PATCH] Fixed dev mode bug. --- src/main/java/forge/model/FModel.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main/java/forge/model/FModel.java b/src/main/java/forge/model/FModel.java index 989a37a055a..92e2315a950 100644 --- a/src/main/java/forge/model/FModel.java +++ b/src/main/java/forge/model/FModel.java @@ -90,6 +90,13 @@ public class FModel { throw new RuntimeException(exn); } + // TODO this single setting from preferences should not be here, or, + // it should be here with all the other settings at the same time. + // Unfortunately, they're tied up in legacy code in the Display interface, + // currently in GuiTopLevel. When that code is updated, this TODO should be resolved. + // Doublestrike 24-01-12 + Constant.Runtime.DEV_MODE[0] = preferences.isDeveloperMode(); + // Instantiate AI AllZone.setInputControl(new InputControl(FModel.this)); AllZone.getInputControl().setComputer(new ComputerAIInput(new ComputerAIGeneral()));