diff --git a/src/common/rendering/hwrenderer/data/hw_skydome.cpp b/src/common/rendering/hwrenderer/data/hw_skydome.cpp index 43e56adeca..18108c8f23 100644 --- a/src/common/rendering/hwrenderer/data/hw_skydome.cpp +++ b/src/common/rendering/hwrenderer/data/hw_skydome.cpp @@ -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! ;) // //----------------------------------------------------------------------------- diff --git a/src/common/textures/bitmap.cpp b/src/common/textures/bitmap.cpp index 0a0553c3c4..b97b969d70 100644 --- a/src/common/textures/bitmap.cpp +++ b/src/common/textures/bitmap.cpp @@ -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; diff --git a/src/common/textures/hires/xbr/xbrz.cpp b/src/common/textures/hires/xbr/xbrz.cpp index cd0b7b030d..855205af25 100644 --- a/src/common/textures/hires/xbr/xbrz.cpp +++ b/src/common/textures/hires/xbr/xbrz.cpp @@ -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; diff --git a/src/common/thirdparty/math/fastsin.cpp b/src/common/thirdparty/math/fastsin.cpp index 36f59dbb44..41bc473ca8 100644 --- a/src/common/thirdparty/math/fastsin.cpp +++ b/src/common/thirdparty/math/fastsin.cpp @@ -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]); } diff --git a/src/playsim/p_actionfunctions.cpp b/src/playsim/p_actionfunctions.cpp index 3f19303ac7..6875437122 100644 --- a/src/playsim/p_actionfunctions.cpp +++ b/src/playsim/p_actionfunctions.cpp @@ -3493,7 +3493,7 @@ DEFINE_ACTION_FUNCTION(AActor, A_WolfAttack) // Target can dodge if it can see enemy 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 DVector2 vec = self->Vec2To(self->target);