diff options
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs index d7710c7..fa97c35 100644 --- a/src/main.rs +++ b/src/main.rs @@ -344,6 +344,15 @@ impl Dock { { let mut facilities = self.facilities.lock()?; + /* Before we handle any modules, we update all the facilities. This is + * the easy way to make sure each facility gets updated exactly once per + * frame; making it the modules' responsibility would be more + * bookkeeping, to no purpose. + */ + for facility in facilities.iter_mut() { + facility.update()?; + } + for (module, framing) in &self.modules { let text = { let mut module = module.lock()?; |