summaryrefslogtreecommitdiff
path: root/src/level.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/level.cpp')
-rw-r--r--src/level.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/level.cpp b/src/level.cpp
index fb11881..b3a2a7b 100644
--- a/src/level.cpp
+++ b/src/level.cpp
@@ -104,12 +104,10 @@ namespace silly::editor {
<< "# width;height\n"
<< this->width << ";" << this->height << "\n";
- for (auto it = this->layers.begin(); it != this->layers.end(); ++it) {
- oss << "[[[layer]]]\n"
- << "# type\n"
- << it->type << "\n"
- << "# tileset_tile_id;x;y;rotation\n";
+ oss << "[[[tiles]]]\n"
+ << "# tileset_tile_id;x;y;rotation\n";
+ for (auto it = this->layers.begin(); it != this->layers.end(); ++it) {
for (auto tt = it->tiles.begin(); tt != it->tiles.end(); ++tt) {
oss << tt->tile->id << ";" << tt->position.x << ";" << tt->position.y
<< ";" << tt->rotation << "\n";