convert more files to UTF-8.

It was mostly degree signs causing these issues.
This commit is contained in:
Christoph Oelckers 2024-01-02 21:54:29 +01:00
parent 243006987d
commit e27cbe5bd9
5 changed files with 9 additions and 9 deletions

View file

@ -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! ;) // also shamelessly lifted from ZDoomGL! ;)
// //
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------

View file

@ -257,21 +257,21 @@ bool ClipCopyPixelRect(const FClipRect *cr, int &originx, int &originy,
step_y = pstep_y; step_y = pstep_y;
break; break;
case 1: // rotate 90° right case 1: // rotate 90° right
pixxoffset = 0; pixxoffset = 0;
pixyoffset = srcheight - 1; pixyoffset = srcheight - 1;
step_x = -pstep_y; step_x = -pstep_y;
step_y = pstep_x; step_y = pstep_x;
break; break;
case 2: // rotate 180° case 2: // rotate 180°
pixxoffset = srcwidth - 1; pixxoffset = srcwidth - 1;
pixyoffset = srcheight - 1; pixyoffset = srcheight - 1;
step_x = -pstep_x; step_x = -pstep_x;
step_y = -pstep_y; step_y = -pstep_y;
break; break;
case 3: // rotate 90° left case 3: // rotate 90° left
pixxoffset = srcwidth - 1; pixxoffset = srcwidth - 1;
pixyoffset = 0; pixyoffset = 0;
step_x = pstep_y; step_x = pstep_y;
@ -285,7 +285,7 @@ bool ClipCopyPixelRect(const FClipRect *cr, int &originx, int &originy,
step_y = pstep_y; step_y = pstep_y;
break; break;
case 5: // flip horizontally and rotate 90° right case 5: // flip horizontally and rotate 90° right
pixxoffset = srcwidth - 1; pixxoffset = srcwidth - 1;
pixyoffset = srcheight - 1; pixyoffset = srcheight - 1;
step_x = -pstep_y; step_x = -pstep_y;
@ -299,7 +299,7 @@ bool ClipCopyPixelRect(const FClipRect *cr, int &originx, int &originy,
step_y = -pstep_y; step_y = -pstep_y;
break; break;
case 7: // flip horizontally and rotate 90° left case 7: // flip horizontally and rotate 90° left
pixxoffset = 0; pixxoffset = 0;
pixyoffset = 0; pixyoffset = 0;
step_x = pstep_y; step_x = pstep_y;

View file

@ -420,7 +420,7 @@ void blendPixel(const Kernel_3x3& ker,
return true; return true;
//make sure there is no second blending in an adjacent rotation for this pixel: handles insular pixels, mario eyes //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; return false;
if (getBottomL(blend) != BLEND_NONE && !eq(e, c)) if (getBottomL(blend) != BLEND_NONE && !eq(e, c))
return false; return false;

View file

@ -57,7 +57,7 @@ __forceinline double FFastTrig::sinq1(unsigned bangle)
{ {
unsigned int index = bangle >> BITSHIFT; 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]); return double(sinetable[index]);
} }

View file

@ -3493,7 +3493,7 @@ DEFINE_ACTION_FUNCTION(AActor, A_WolfAttack)
// Target can dodge if it can see enemy // Target can dodge if it can see enemy
DAngle angle = absangle(self->target->Angles.Yaw, self->target->AngleTo(self)); DAngle angle = absangle(self->target->Angles.Yaw, self->target->AngleTo(self));
bool dodge = (P_CheckSight(self->target, self) && angle < DAngle::fromDeg(30. * 256. / 360.)); // 30 byteangles ~ 21° bool dodge = (P_CheckSight(self->target, self) && angle < DAngle::fromDeg(30. * 256. / 360.)); // 30 byteangles ~ 21°
// Distance check is simplistic // Distance check is simplistic
DVector2 vec = self->Vec2To(self->target); DVector2 vec = self->Vec2To(self->target);