Added direct native functions to the remaining content of vmthunks.cpp
This commit is contained in:
parent
62efe11a85
commit
53d59559cd
7 changed files with 31 additions and 31 deletions
|
|
@ -246,7 +246,7 @@ DFireFlicker::DFireFlicker (sector_t *sector)
|
|||
: DLighting (sector)
|
||||
{
|
||||
m_MaxLight = sector->lightlevel;
|
||||
m_MinLight = sector_t::ClampLight(sector->FindMinSurroundingLight(sector->lightlevel) + 16);
|
||||
m_MinLight = sector_t::ClampLight(FindMinSurroundingLight(sector, sector->lightlevel) + 16);
|
||||
m_Count = 4;
|
||||
}
|
||||
|
||||
|
|
@ -391,7 +391,7 @@ DLightFlash::DLightFlash (sector_t *sector)
|
|||
{
|
||||
// Find light levels like Doom.
|
||||
m_MaxLight = sector->lightlevel;
|
||||
m_MinLight = sector->FindMinSurroundingLight (sector->lightlevel);
|
||||
m_MinLight = FindMinSurroundingLight (sector, sector->lightlevel);
|
||||
m_MaxTime = 64;
|
||||
m_MinTime = 7;
|
||||
m_Count = (pr_lightflash() & m_MaxTime) + 1;
|
||||
|
|
@ -483,7 +483,7 @@ DStrobe::DStrobe (sector_t *sector, int utics, int ltics, bool inSync)
|
|||
m_BrightTime = utics;
|
||||
|
||||
m_MaxLight = sector->lightlevel;
|
||||
m_MinLight = sector->FindMinSurroundingLight (sector->lightlevel);
|
||||
m_MinLight = FindMinSurroundingLight (sector, sector->lightlevel);
|
||||
|
||||
if (m_MinLight == m_MaxLight)
|
||||
m_MinLight = 0;
|
||||
|
|
@ -729,7 +729,7 @@ void DGlow::Tick ()
|
|||
DGlow::DGlow (sector_t *sector)
|
||||
: DLighting (sector)
|
||||
{
|
||||
m_MinLight = sector->FindMinSurroundingLight (sector->lightlevel);
|
||||
m_MinLight = FindMinSurroundingLight (sector, sector->lightlevel);
|
||||
m_MaxLight = sector->lightlevel;
|
||||
m_Direction = -1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue