Simplify halfstretch math.
This commit is contained in:
parent
a8e018d507
commit
c70fa25af7
1 changed files with 4 additions and 4 deletions
|
|
@ -24,7 +24,7 @@ Class PulseGunLED : Actor
|
||||||
SetZ(floorz);
|
SetZ(floorz);
|
||||||
roll = 180;
|
roll = 180;
|
||||||
angle = 180;
|
angle = 180;
|
||||||
double halfstretch = 1.+(level.pixelstretch-1.)/2.;
|
double halfstretch = (1.+level.pixelstretch)/2.;
|
||||||
if ( !base ) base = Spawn("AmmoLEDScreen",(PULSELEDBASE,PULSELEDBASE-128.,floorz+64.*halfstretch));
|
if ( !base ) base = Spawn("AmmoLEDScreen",(PULSELEDBASE,PULSELEDBASE-128.,floorz+64.*halfstretch));
|
||||||
for ( int i=0; i<3; i++ )
|
for ( int i=0; i<3; i++ )
|
||||||
{
|
{
|
||||||
|
|
@ -79,7 +79,7 @@ Class FlakCannonLED : Actor
|
||||||
SetZ(floorz);
|
SetZ(floorz);
|
||||||
roll = 180;
|
roll = 180;
|
||||||
angle = 180;
|
angle = 180;
|
||||||
double halfstretch = 1.+(level.pixelstretch-1.)/2.;
|
double halfstretch = (1.+level.pixelstretch)/2.;
|
||||||
if ( !base ) base = Spawn("AmmoLEDScreen",(FLAKLEDBASE,FLAKLEDBASE-64.,floorz+32.*halfstretch));
|
if ( !base ) base = Spawn("AmmoLEDScreen",(FLAKLEDBASE,FLAKLEDBASE-64.,floorz+32.*halfstretch));
|
||||||
for ( int i=0; i<3; i++ )
|
for ( int i=0; i<3; i++ )
|
||||||
{
|
{
|
||||||
|
|
@ -122,7 +122,7 @@ Class MinigunLED : Actor
|
||||||
SetZ(floorz);
|
SetZ(floorz);
|
||||||
roll = 180;
|
roll = 180;
|
||||||
angle = 180;
|
angle = 180;
|
||||||
double halfstretch = 1.+(level.pixelstretch-1.)/2.;
|
double halfstretch = (1.+level.pixelstretch)/2.;
|
||||||
if ( !base ) base = Spawn("AmmoLEDScreen",(MINILEDBASE,MINILEDBASE-32.,floorz+32.*halfstretch));
|
if ( !base ) base = Spawn("AmmoLEDScreen",(MINILEDBASE,MINILEDBASE-32.,floorz+32.*halfstretch));
|
||||||
for ( int i=0; i<3; i++ )
|
for ( int i=0; i<3; i++ )
|
||||||
{
|
{
|
||||||
|
|
@ -165,7 +165,7 @@ Class UTRocketLauncherLED : Actor
|
||||||
SetZ(floorz);
|
SetZ(floorz);
|
||||||
roll = 180;
|
roll = 180;
|
||||||
angle = 180;
|
angle = 180;
|
||||||
double halfstretch = 1.+(level.pixelstretch-1.)/2.;
|
double halfstretch = (1.+level.pixelstretch)/2.;
|
||||||
if ( !base ) base = Spawn("AmmoLEDScreen",(ROCKETLEDBASE,ROCKETLEDBASE-32.,floorz+32.*halfstretch));
|
if ( !base ) base = Spawn("AmmoLEDScreen",(ROCKETLEDBASE,ROCKETLEDBASE-32.,floorz+32.*halfstretch));
|
||||||
for ( int i=0; i<3; i++ )
|
for ( int i=0; i<3; i++ )
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue