From 9c31c879360ca831310b673b47ae963709250ca7 Mon Sep 17 00:00:00 2001 From: shmyga Date: Wed, 13 Aug 2014 14:22:56 +0400 Subject: [PATCH] fixes --- src/client/haxe/ru/m/armageddon/client/Client.hx | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/client/haxe/ru/m/armageddon/client/Client.hx b/src/client/haxe/ru/m/armageddon/client/Client.hx index 1c22251..7dcccdf 100755 --- a/src/client/haxe/ru/m/armageddon/client/Client.hx +++ b/src/client/haxe/ru/m/armageddon/client/Client.hx @@ -13,8 +13,6 @@ import haxework.gui.Root; import haxework.gui.GuiBuilder; import haxe.Json; import openfl.Assets; -import ru.m.armageddon.core.connect.flash.FlashConnection; -import ru.m.armageddon.core.connect.js.JsConnection; import ru.m.armageddon.core.connect.IConnection; import haxework.log.TraceLogger; @@ -40,11 +38,11 @@ class Client implements IConnectionHandler { Provider.setFactory(GameData, GameData); Provider.set(IFrameSwitcher, switcher); - //#if flash - //Provider.set(IConnection, new FlashConnection("localhost", 5001, this)); - //#elseif html5 - Provider.set(IConnection, new JsConnection("localhost", 5001, this)); - //#end + #if flash + Provider.set(IConnection, new ru.m.armageddon.core.connect.flash.FlashConnection("localhost", 5001, this)); + #elseif html5 + Provider.set(IConnection, new ru.m.armageddon.core.connect.js.JsConnection("localhost", 5001, this)); + #end switcher.change(AuthFrame.ID);