-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactoring and cleanup in BGL reading code
- Loading branch information
Showing
14 changed files
with
81 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/***************************************************************************** | ||
* Copyright 2015-2020 Alexander Barthel [email protected] | ||
* Copyright 2015-2024 Alexander Barthel [email protected] | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
|
@@ -30,7 +30,7 @@ enum Surface | |
CONCRETE = 0x0000, | ||
GRASS = 0x0001, | ||
WATER = 0x0002, | ||
CEMENT = 0x0003, // TODO wiki error report | ||
CEMENT = 0x0003, | ||
ASPHALT = 0x0004, | ||
// GRASS = 0x0005, invalid ADE interprets it as grass | ||
CLAY = 0x0007, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/***************************************************************************** | ||
* Copyright 2015-2020 Alexander Barthel [email protected] | ||
* Copyright 2015-2024 Alexander Barthel [email protected] | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
|
@@ -59,8 +59,7 @@ void MetadataWriter::writeSceneryArea(const QString& filepath, const QString& sc | |
insertSceneryQuery->bindValue(":number", curSceneryId); | ||
insertSceneryQuery->bindValue(":layer", curSceneryId); | ||
insertSceneryQuery->bindValue(":title", sceneryName); | ||
insertSceneryQuery->bindValue(":local_path", filepath.isEmpty() ? | ||
QVariant(QVariant::String) : QFileInfo(filepath).filePath()); | ||
insertSceneryQuery->bindValue(":local_path", filepath.isEmpty() ? QVariant(QVariant::String) : QFileInfo(filepath).filePath()); | ||
insertSceneryQuery->bindValue(":active", true); | ||
insertSceneryQuery->bindValue(":required", true); | ||
insertSceneryQuery->exec(); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/***************************************************************************** | ||
* Copyright 2015-2020 Alexander Barthel [email protected] | ||
* Copyright 2015-2024 Alexander Barthel [email protected] | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
|
@@ -56,7 +56,7 @@ void StartWriter::writeObject(const Start *type) | |
else | ||
bindNullInt(":number"); | ||
|
||
// TODO comment in wiki: helipads have no runway | ||
// Helipads have no runway | ||
if(!apIdent.isEmpty() && type->getType() != bgl::start::HELIPAD) | ||
{ | ||
// Get associated runway for start position | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters