#4111 closed defect (fixed)
[PATCH] Particles of the previous map remain when starting a new game
Reported by: | elexis | Owned by: | Vladislav Belov |
---|---|---|---|
Priority: | Must Have | Milestone: | Alpha 22 |
Component: | Core engine | Keywords: | patch |
Cc: | Patch: |
Description
The particles of the previous map remain when starting a new game on a different map.
Reproduce:
- Make sure to enable particles in the options
- Start a map with particles, like red sea (lot of dust) or volcano (with smoke in the middle)
- Stop the game. Start a new one on for example anatolian plateau
Result: The smoke/dust is still visible until the animation ran out.
Attachments (3)
Change History (10)
by , 7 years ago
Attachment: | 4111_particles.patch added |
---|
comment:1 by , 7 years ago
Problem is that ParticleManager has a list of unattached emitters, which won't be cleared on a start of new game.
comment:2 by , 7 years ago
Keywords: | rfc added |
---|---|
Milestone: | Backlog → Alpha 22 |
Owner: | set to |
Summary: | Particles of the previous map remain when starting a new game → [PATCH] Particles of the previous map remain when starting a new game |
comment:3 by , 7 years ago
Game.cpp
should be agnostic of the Renderer
details as far as possible. If you can't move it to the renderer or particle manager directly, perhaps you can send a GameStarted
event or something like that to that place.
by , 7 years ago
Attachment: | 4111_particles.2.patch added |
---|
follow-up: 5 comment:4 by , 7 years ago
GameSetup.cpp
should stay agnostic of the renderer logic too IMO, how about Gamesetup.EndGame
-> Renderer.EndGame
?
comment:5 by , 7 years ago
Replying to elexis:
GameSetup.cpp
should stay agnostic of the renderer logic too IMO, how aboutGamesetup.EndGame
->Renderer.EndGame
?
But should renderer know about the game? It should render. What's better: GameSetup should stay agnostic of the renderer logic or Renderer should stay agnostic of the game logic?
by , 7 years ago
Attachment: | 4111_particles.3.patch added |
---|
Fixed elexis suggestion about logic in the GameSetup
comment:7 by , 7 years ago
Keywords: | patch added; rfc removed |
---|
Thanks for the patch and explanations Vladislav!
Adds the clear function's call (at game start), which remove old emitters