- moved particle storage into FLevelLocals.
- moved parts of the render setup out of the separate render functions. Things like particle and polyobject linking were duplicated several times for rendering different things in different renderers. These things only need to be set up once before the renderer is started so it makes a lot more sense to consolidate them into one place outside the actual rendering code.
This commit is contained in:
parent
50d59e99cb
commit
68667e5eaa
22 changed files with 139 additions and 128 deletions
|
|
@ -80,6 +80,7 @@
|
|||
#include "i_music.h"
|
||||
#include "a_dynlight.h"
|
||||
#include "p_conversation.h"
|
||||
#include "p_effect.h"
|
||||
|
||||
#include "gi.h"
|
||||
|
||||
|
|
@ -1460,6 +1461,8 @@ int G_FinishTravel ()
|
|||
|
||||
void FLevelLocals::Init()
|
||||
{
|
||||
P_InitParticles(this);
|
||||
P_ClearParticles(this);
|
||||
BaseBlendA = 0.0f; // Remove underwater blend effect, if any
|
||||
|
||||
gravity = sv_gravity * 35/TICRATE;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue