summaryrefslogtreecommitdiffstats
path: root/src/PatchageModule.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/PatchageModule.cpp')
-rw-r--r--src/PatchageModule.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/PatchageModule.cpp b/src/PatchageModule.cpp
index 3a802f6..8c68625 100644
--- a/src/PatchageModule.cpp
+++ b/src/PatchageModule.cpp
@@ -50,8 +50,9 @@ PatchageModule::~PatchageModule()
void
PatchageModule::update_menu()
{
- if (!_menu)
+ if (!_menu) {
return;
+ }
if (_type == InputOutput) {
bool has_in = false;
@@ -106,10 +107,11 @@ PatchageModule::load_location()
{
Coord loc;
- if (_app->conf()->get_module_location(_name, _type, loc))
+ if (_app->conf()->get_module_location(_name, _type, loc)) {
move_to(loc.x, loc.y);
- else
+ } else {
move_to(20 + rand() % 640, 20 + rand() % 480);
+ }
}
void