| 2179 | } |
| 2180 | |
| 2181 | void Game_Map::Parallax::ScrollRight(int distance) { |
| 2182 | if (!distance) { |
| 2183 | return; |
| 2184 | } |
| 2185 | |
| 2186 | Params params = GetParallaxParams(); |
| 2187 | if (params.name.empty()) { |
| 2188 | return; |
| 2189 | } |
| 2190 | |
| 2191 | if (params.scroll_horz) { |
| 2192 | AddPositionX(distance); |
| 2193 | return; |
| 2194 | } |
| 2195 | |
| 2196 | if (Game_Map::LoopHorizontal()) { |
| 2197 | return; |
| 2198 | } |
| 2199 | |
| 2200 | ResetPositionX(); |
| 2201 | } |
| 2202 | |
| 2203 | void Game_Map::Parallax::ScrollDown(int distance) { |
| 2204 | if (!distance) { |
nothing calls this directly
no test coverage detected