Skip to content

Commit

Permalink
Minor cleanup to 2045b67
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
Vultraz authored and GregoryLundberg committed Nov 30, 2017
1 parent 15d3b4a commit 855a23a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/game_events/handlers.cpp
Expand Up @@ -57,14 +57,13 @@ event_handler::event_handler(const config& cfg, bool imi)

void event_handler::disable()
{
assert(!disabled_);;
assert(!disabled_);
disabled_ = true;
}


void event_handler::handle_event(const queued_event& event_info, game_lua_kernel& lk)
{
// If this even is disabled, do nothing.
if(disabled_) {
return;
}
Expand All @@ -73,7 +72,6 @@ void event_handler::handle_event(const queued_event& event_info, game_lua_kernel
DBG_NG << cfg_["name"] << " will now invoke the following command(s):\n" << cfg_;
}

// Disable this handler if it's a one-time event.
if(first_time_only_) {
disable();
}
Expand Down

0 comments on commit 855a23a

Please sign in to comment.