aboutsummaryrefslogtreecommitdiff
path: root/Source/MapEditor/mainwindow.cpp
diff options
context:
space:
mode:
authorXavier ASUS <xavi92psx@gmail.com>2018-11-29 01:07:06 +0100
committerXavier ASUS <xavi92psx@gmail.com>2018-11-29 01:07:06 +0100
commit9cbaf49e93758b50e82a4d7d42762de242e7f086 (patch)
treeccef6f3880f390783ded88fe844a18cba0fba30c /Source/MapEditor/mainwindow.cpp
parent0b60fe23cdbca9df95c8cc2bf978874c29334e69 (diff)
Some important bugfixes.
Added BUILDING_ATC_LOC. Added more levels.
Diffstat (limited to 'Source/MapEditor/mainwindow.cpp')
-rw-r--r--Source/MapEditor/mainwindow.cpp15
1 files changed, 14 insertions, 1 deletions
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++)