We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 70cec9f commit ffaf350Copy full SHA for ffaf350
src/object/pushbutton.cpp
@@ -17,6 +17,7 @@
17
#include "object/pushbutton.hpp"
18
19
#include "audio/sound_manager.hpp"
20
+#include "editor/editor.hpp"
21
#include "object/bigsnowball.hpp"
22
#include "object/player.hpp"
23
#include "object/rock.hpp"
@@ -38,7 +39,7 @@ PushButton::PushButton(const ReaderMapping& mapping) :
38
39
{
40
SoundManager::current()->preload(BUTTON_SOUND);
41
- if (!mapping.get("script", m_script))
42
+ if (!mapping.get("script", m_script) && !Editor::is_active())
43
44
log_warning << "No script set for pushbutton." << std::endl;
45
}
0 commit comments