| 1835 | } |
| 1836 | |
| 1837 | static bool MouseWasClickedThisTimestep(Mouse* mouse) { |
| 1838 | for (int i : mouse->mouse_down_) { |
| 1839 | if (i == Mouse::CLICKED) return true; |
| 1840 | } |
| 1841 | return false; |
| 1842 | } |
| 1843 | |
| 1844 | int MapEditor::ReplaceObjects(const std::vector<Object*>& objects, const std::string& replacement_path) { |
| 1845 | if (LoadEntitiesFromFile(replacement_path) != 0) |