mirror of
https://github.com/ZDoom/Raze.git
synced 2025-01-31 20:40:39 +00:00
converted files to UTF-8
This commit is contained in:
parent
52b3d386cf
commit
b72fcd5185
8 changed files with 12 additions and 12 deletions
|
@ -66,7 +66,7 @@
|
|||
|
||||
//-----------------------------------------------------------------------------
|
||||
//
|
||||
// Shamelessly lifted from Doomsday (written by Jaakko Keränen)
|
||||
// Shamelessly lifted from Doomsday (written by Jaakko Keränen)
|
||||
// also shamelessly lifted from ZDoomGL! ;)
|
||||
//
|
||||
//-----------------------------------------------------------------------------
|
||||
|
|
|
@ -257,21 +257,21 @@ bool ClipCopyPixelRect(const FClipRect *cr, int &originx, int &originy,
|
|||
step_y = pstep_y;
|
||||
break;
|
||||
|
||||
case 1: // rotate 90° right
|
||||
case 1: // rotate 90° right
|
||||
pixxoffset = 0;
|
||||
pixyoffset = srcheight - 1;
|
||||
step_x = -pstep_y;
|
||||
step_y = pstep_x;
|
||||
break;
|
||||
|
||||
case 2: // rotate 180°
|
||||
case 2: // rotate 180°
|
||||
pixxoffset = srcwidth - 1;
|
||||
pixyoffset = srcheight - 1;
|
||||
step_x = -pstep_x;
|
||||
step_y = -pstep_y;
|
||||
break;
|
||||
|
||||
case 3: // rotate 90° left
|
||||
case 3: // rotate 90° left
|
||||
pixxoffset = srcwidth - 1;
|
||||
pixyoffset = 0;
|
||||
step_x = pstep_y;
|
||||
|
@ -285,7 +285,7 @@ bool ClipCopyPixelRect(const FClipRect *cr, int &originx, int &originy,
|
|||
step_y = pstep_y;
|
||||
break;
|
||||
|
||||
case 5: // flip horizontally and rotate 90° right
|
||||
case 5: // flip horizontally and rotate 90° right
|
||||
pixxoffset = srcwidth - 1;
|
||||
pixyoffset = srcheight - 1;
|
||||
step_x = -pstep_y;
|
||||
|
@ -299,7 +299,7 @@ bool ClipCopyPixelRect(const FClipRect *cr, int &originx, int &originy,
|
|||
step_y = -pstep_y;
|
||||
break;
|
||||
|
||||
case 7: // flip horizontally and rotate 90° left
|
||||
case 7: // flip horizontally and rotate 90° left
|
||||
pixxoffset = 0;
|
||||
pixyoffset = 0;
|
||||
step_x = pstep_y;
|
||||
|
|
|
@ -420,7 +420,7 @@ void blendPixel(const Kernel_3x3& ker,
|
|||
return true;
|
||||
|
||||
//make sure there is no second blending in an adjacent rotation for this pixel: handles insular pixels, mario eyes
|
||||
if (getTopR(blend) != BLEND_NONE && !eq(e, g)) //but support double-blending for 90° corners
|
||||
if (getTopR(blend) != BLEND_NONE && !eq(e, g)) //but support double-blending for 90° corners
|
||||
return false;
|
||||
if (getBottomL(blend) != BLEND_NONE && !eq(e, c))
|
||||
return false;
|
||||
|
|
2
source/common/thirdparty/math/fastsin.cpp
vendored
2
source/common/thirdparty/math/fastsin.cpp
vendored
|
@ -57,7 +57,7 @@ __forceinline double FFastTrig::sinq1(unsigned bangle)
|
|||
{
|
||||
unsigned int index = bangle >> BITSHIFT;
|
||||
|
||||
if ((bangle &= (REMAINDER)) == 0) // This is to avoid precision problems at 180°
|
||||
if ((bangle &= (REMAINDER)) == 0) // This is to avoid precision problems at 180°
|
||||
{
|
||||
return double(sinetable[index]);
|
||||
}
|
||||
|
|
|
@ -33,7 +33,7 @@ struct FActorInfo
|
|||
int NumMoves = 0;
|
||||
int FirstAI = -1;
|
||||
int NumAIs = 0;
|
||||
FName DefaultAction = NAME_Null; // 'none' is valíd content here so use 'null' as 'not set'.
|
||||
FName DefaultAction = NAME_Null; // 'none' is valíd content here so use 'null' as 'not set'.
|
||||
FName DefaultMove = NAME_Null;
|
||||
int DefaultMoveflags = 0;
|
||||
|
||||
|
|
|
@ -250,7 +250,7 @@ void aiChooseDirection(DBloodActor* actor, DAngle direction)
|
|||
{
|
||||
assert(actor->spr.type >= kDudeBase && actor->spr.type < kDudeMax);
|
||||
DAngle vc = deltaangle(actor->spr.Angles.Yaw, direction);
|
||||
auto almost60deg = DAngle::fromBuild(341); // 60° does not work correctly - this is a little bit less, actually.
|
||||
auto almost60deg = DAngle::fromBuild(341); // 60° does not work correctly - this is a little bit less, actually.
|
||||
DAngle v8 = vc.Sgn() == -1 ? -almost60deg : almost60deg;
|
||||
|
||||
double range = actor->vel.XY().dot(actor->spr.Angles.Yaw.ToVector()) * 120;
|
||||
|
|
|
@ -224,7 +224,7 @@ void evSend(EventObject& eob, int rxId, COMMAND_ID command, DBloodActor* initiat
|
|||
levelEndLevel(1);
|
||||
return;
|
||||
#ifdef NOONE_EXTENSIONS
|
||||
// finished level and load custom level ¹ via numbered command.
|
||||
// finished level and load custom level via numbered command.
|
||||
case kChannelModernEndLevelCustom:
|
||||
if (command >= kCmdNumberic) levelEndLevelCustom(command - kCmdNumberic);
|
||||
else viewSetSystemMessage("Invalid Level-Exit# command by %s", eob.description().GetChars());
|
||||
|
|
|
@ -391,7 +391,7 @@ void movetransports_d(void)
|
|||
act2->spr.pos.Z = Owner->sector()->ceilingz + 7 + gs.playerheight;
|
||||
act2->backupz();
|
||||
|
||||
// this is actually below the precision óf the original Build coordinate system...
|
||||
// this is actually below the precision of the original Build coordinate system...
|
||||
p->vel.X = ((krand() & 8192) ? 1 / 64. : -1 / 64.);
|
||||
p->vel.Y = ((krand() & 8192) ? 1 / 64. : -1 / 64.);
|
||||
|
||||
|
|
Loading…
Reference in a new issue