mirror of
https://github.com/ZDoom/qzdoom-gpl.git
synced 2024-11-29 23:23:07 +00:00
This commit is contained in:
commit
da0f2b47b1
1 changed files with 4 additions and 1 deletions
|
@ -31,6 +31,7 @@
|
||||||
|
|
||||||
#include "p_lnspec.h"
|
#include "p_lnspec.h"
|
||||||
#include "doomstat.h"
|
#include "doomstat.h"
|
||||||
|
#include "p_maputl.h"
|
||||||
|
|
||||||
// State.
|
// State.
|
||||||
#include "r_state.h"
|
#include "r_state.h"
|
||||||
|
@ -914,7 +915,7 @@ void DPhased::Tick ()
|
||||||
|
|
||||||
int DPhased::PhaseHelper (sector_t *sector, int index, int light, sector_t *prev)
|
int DPhased::PhaseHelper (sector_t *sector, int index, int light, sector_t *prev)
|
||||||
{
|
{
|
||||||
if (!sector)
|
if (!sector || sector->validcount == validcount)
|
||||||
{
|
{
|
||||||
return index;
|
return index;
|
||||||
}
|
}
|
||||||
|
@ -922,6 +923,7 @@ int DPhased::PhaseHelper (sector_t *sector, int index, int light, sector_t *prev
|
||||||
{
|
{
|
||||||
DPhased *l;
|
DPhased *l;
|
||||||
int baselevel = sector->lightlevel ? sector->lightlevel : light;
|
int baselevel = sector->lightlevel ? sector->lightlevel : light;
|
||||||
|
sector->validcount = validcount;
|
||||||
|
|
||||||
if (index == 0)
|
if (index == 0)
|
||||||
{
|
{
|
||||||
|
@ -958,6 +960,7 @@ DPhased::DPhased (sector_t *sector, int baselevel)
|
||||||
DPhased::DPhased (sector_t *sector)
|
DPhased::DPhased (sector_t *sector)
|
||||||
: DLighting (sector)
|
: DLighting (sector)
|
||||||
{
|
{
|
||||||
|
validcount++;
|
||||||
PhaseHelper (sector, 0, 0, NULL);
|
PhaseHelper (sector, 0, 0, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue