Fix cursor when switching demo in DemoParticles (#168)

* fix cursor

* whoopsie
This commit is contained in:
S6066 2018-06-28 16:11:54 +02:00 committed by Jérôme Leclercq
parent 78adc11323
commit f9c5867d72
1 changed files with 2 additions and 0 deletions

View File

@ -669,6 +669,8 @@ void SpacebattleExample::Enter(Ndk::StateMachine& fsm)
void SpacebattleExample::Leave(Ndk::StateMachine& fsm)
{
m_ambientMusic.Stop();
m_onMouseMoved.Disconnect();
m_shared.target->SetCursor(Nz::SystemCursor_Default);
m_shared.world3D->RemoveSystem<LaserBeamSystem>();
m_shared.world3D->RemoveSystem<SpaceshipSystem>();
m_turretFireSound.Stop();