16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-19 12:19:18 +02:00

lua events without delay are executed instantly

This commit is contained in:
milek7
2018-10-26 11:22:10 +02:00
parent fd8dfcc323
commit d5fb93b5ae
2 changed files with 5 additions and 0 deletions

View File

@@ -1855,6 +1855,10 @@ lua_event::export_as_text_( std::ostream &Output ) const {
// nothing to do here
}
bool lua_event::is_instant() const {
return m_delay == 0.0 && m_delayrandom == 0.0;
}
// prepares event for use
void
message_event::init() {