ConnectPause event gets callled together with ConnectWorldUpdateBegin

asked 2014-09-24 09:13:26 -0600

AndreiHaidu gravatar image


when using Events::ConnectPause separatly the callback gets called only when the simulation is paused/started. However, if I use the Events::ConnectWorldUpdateBegin as well, both callbacks are called at every world update:

here is the code snippet

    this->eventConnection = event::Events::ConnectWorldUpdateBegin(
        boost::bind(&PluginClass::DummyWorldUpdate, this));

    this->pauseConnection = event::Events::ConnectPause(
        boost::bind(&PluginClass::DummyPauseUpdate, this));

is this a bug?

edit retag flag offensive close merge delete