From 9cbaf49e93758b50e82a4d7d42762de242e7f086 Mon Sep 17 00:00:00 2001 From: Xavier ASUS Date: Thu, 29 Nov 2018 01:07:06 +0100 Subject: Some important bugfixes. Added BUILDING_ATC_LOC. Added more levels. --- Source/MapEditor/mainwindow.cpp | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'Source/MapEditor/mainwindow.cpp') diff --git a/Source/MapEditor/mainwindow.cpp b/Source/MapEditor/mainwindow.cpp index 7282c6a..64f4678 100644 --- a/Source/MapEditor/mainwindow.cpp +++ b/Source/MapEditor/mainwindow.cpp @@ -482,6 +482,11 @@ void MainWindow::addBuilding(quint8 CurrentBuilding, const int i, const int j) BUILDING_ATC_TOWER_V = 0, BUILDING_ATC_TOWER_W = 29, BUILDING_ATC_TOWER_H = 34, + + BUILDING_ATC_LOC_U = 87, + BUILDING_ATC_LOC_V = 0, + BUILDING_ATC_LOC_W = 10, + BUILDING_ATC_LOC_H = 34 }; enum @@ -503,6 +508,9 @@ void MainWindow::addBuilding(quint8 CurrentBuilding, const int i, const int j) BUILDING_ATC_TOWER_ORIGIN_X = 12, BUILDING_ATC_TOWER_ORIGIN_Y = 20, + + BUILDING_ATC_LOC_ORIGIN_X = 6, + BUILDING_ATC_LOC_ORIGIN_Y = 32 }; static const struct @@ -521,7 +529,7 @@ void MainWindow::addBuilding(quint8 CurrentBuilding, const int i, const int j) BUILDING_DATA(BUILDING_HANGAR), BUILDING_DATA(BUILDING_ILS), BUILDING_DATA(BUILDING_ATC_TOWER), - NODATA, + BUILDING_DATA(BUILDING_ATC_LOC), BUILDING_DATA(BUILDING_TERMINAL), BUILDING_DATA(BUILDING_TERMINAL_2), BUILDING_DATA(BUILDING_GATE) @@ -575,6 +583,11 @@ void MainWindow::addBuilding(quint8 CurrentBuilding, const int i, const int j) cropped = cropped.convertToFormat(QImage::Format_ARGB32); // or maybe other format + if (CurrentBuilding & TILE_MIRROR_FLAG) + { + cropped = cropped.mirrored(true, false); + } + for (int i = 0; i < cropped.width(); i++) { for (int j = 0; j < cropped.height(); j++) -- cgit v1.2.3