summaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2024-08-13 20:51:23 +0200
committerHampusM <hampus@hampusmat.com>2024-08-13 20:51:23 +0200
commit3e8a96e83fb02aa52cfeee9cf9e215b385cfdbcb (patch)
tree04e4f3b7d6f5bd5de886d021279c7d4cd2be2467 /engine
parent28438c40c09bb52f8bd444b6f5cf9b34bdf71fee (diff)
fix(engine): remove emitting start
This caused two start events being emitted
Diffstat (limited to 'engine')
-rw-r--r--engine/src/lib.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/engine/src/lib.rs b/engine/src/lib.rs
index 3080047..9400e56 100644
--- a/engine/src/lib.rs
+++ b/engine/src/lib.rs
@@ -14,7 +14,6 @@ use crate::event::{
PostPresent as PostPresentEvent,
PreUpdate as PreUpdateEvent,
Present as PresentEvent,
- Start as StartEvent,
Update as UpdateEvent,
};
@@ -104,11 +103,9 @@ impl Engine
self.world.add_extension(extension);
}
- /// Emits the [`StartEvent`] event and then runs the event loop.
+ /// Runs the event loop.
pub fn start(&self)
{
- self.world.emit(StartEvent);
-
self.world.event_loop::<EventOrder>();
}
}