summary refs log tree commit diff stats
path: root/src/map.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/map.cpp')
-rw-r--r--src/map.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/map.cpp b/src/map.cpp index 1a2a250..2214d17 100644 --- a/src/map.cpp +++ b/src/map.cpp
@@ -78,6 +78,12 @@ Map::Map(std::string_view filename, Renderer& renderer) {
78 } 78 }
79 79
80 prototypes_.push_back(std::move(p)); 80 prototypes_.push_back(std::move(p));
81 } else if (object.getType() == "warp") {
82 vec2i point;
83 point.x() = object.getPosition().x;
84 point.y() = object.getPosition().y;
85
86 warpPoints_[object.getName()] = std::move(point);
81 } 87 }
82 } 88 }
83 } 89 }