From d279d52b092de7aa91edeb5831d685f87648f613 Mon Sep 17 00:00:00 2001 From: shmyga Date: Sun, 11 Feb 2018 14:37:02 +0300 Subject: [PATCH] [editor] fix --- src/editor/haxe/ru/m/tankz/editor/Editor.hx | 2 +- src/editor/haxe/ru/m/tankz/editor/MapEditView.hx | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/editor/haxe/ru/m/tankz/editor/Editor.hx b/src/editor/haxe/ru/m/tankz/editor/Editor.hx index b33a33a..94924bc 100644 --- a/src/editor/haxe/ru/m/tankz/editor/Editor.hx +++ b/src/editor/haxe/ru/m/tankz/editor/Editor.hx @@ -1,7 +1,7 @@ package ru.m.tankz.editor; -import ru.m.tankz.game.Game; +import ru.m.tankz.Type; import ru.m.tankz.editor.MapEditView; import ru.m.tankz.game.DotaGame; import haxework.gui.list.ListView; diff --git a/src/editor/haxe/ru/m/tankz/editor/MapEditView.hx b/src/editor/haxe/ru/m/tankz/editor/MapEditView.hx index 424c3a7..071d303 100644 --- a/src/editor/haxe/ru/m/tankz/editor/MapEditView.hx +++ b/src/editor/haxe/ru/m/tankz/editor/MapEditView.hx @@ -42,9 +42,10 @@ class SpawnPointItem extends BitmapItem { public static function getSrc(value:SpawnPoint, config:Config):String { var tankType = config.getTeam(value.team).tanks[0]; + var tankConfig = config.getTank(tankType.type); return switch(value.type) { case 'eagle': 'resources/images/eagle/eagle-0.png'; - case 'tank': TankItem.getTankFrames(value.team, value.index, tankType)[0]; + case 'tank': 'resources/image/tank/${tankConfig.skin}-0.png'; case x: 'resources/images/eagle/eagle-1.png'; } }