diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2021-02-27 12:05:45 -0500 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2021-02-27 12:05:45 -0500 |
commit | 1656242563d14fa564bab8d4bc40054ab8998553 (patch) | |
tree | 872589408ac7aef54b1959dc53b946fbed9dfcaa /src/map.cpp | |
parent | e644f5c0d769989bd3b0665312c6949d76f5e388 (diff) | |
download | tanetane-1656242563d14fa564bab8d4bc40054ab8998553.tar.gz tanetane-1656242563d14fa564bab8d4bc40054ab8998553.tar.bz2 tanetane-1656242563d14fa564bab8d4bc40054ab8998553.zip |
Added background music (defined on a per-map basis)
Diffstat (limited to 'src/map.cpp')
-rw-r--r-- | src/map.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/map.cpp b/src/map.cpp index a5ecbdd..7a3de78 100644 --- a/src/map.cpp +++ b/src/map.cpp | |||
@@ -153,6 +153,12 @@ Map::Map(std::string_view name) : name_(name) { | |||
153 | } | 153 | } |
154 | } | 154 | } |
155 | } | 155 | } |
156 | |||
157 | for (const tmx::Property& property : mapfile.getProperties()) { | ||
158 | if (property.getName() == "music") { | ||
159 | music_ = property.getStringValue(); | ||
160 | } | ||
161 | } | ||
156 | } | 162 | } |
157 | 163 | ||
158 | bool Map::isBlocked(int x, int y) const { | 164 | bool Map::isBlocked(int x, int y) const { |