Ticket #4111: 4111_particles.patch

File 4111_particles.patch, 569 bytes (added by Vladislav Belov, 7 years ago)

Adds the clear function's call (at game start), which remove old emitters

  • source/ps/Game.cpp

     
    329329        if (g_GUI->GetActiveGUI()->GetScriptInterface()->HasProperty(global, "reallyStartGame"))
    330330            g_GUI->GetActiveGUI()->GetScriptInterface()->CallFunctionVoid(global, "reallyStartGame");
    331331    }
     332   
     333    // Clear all emitters, that were created in previous games
     334    g_Renderer.GetParticleManager().ClearUnattachedEmitters();
    332335
    333336    debug_printf("GAME STARTED, ALL INIT COMPLETE\n");
    334337