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'; } }