diff --git a/src/g_game.c b/src/g_game.c
index a9446714dff8a87f85554e85a2ef64fde759a655..9db9c413b3a4c9ab448ff8e78dfa137c7fb871c6 100644
--- a/src/g_game.c
+++ b/src/g_game.c
@@ -897,12 +897,12 @@ void G_BuildTiccmd(ticcmd_t *cmd, INT32 realtics)
 
 	turnright = PLAYER1INPUTDOWN(gc_turnright);
 	turnleft = PLAYER1INPUTDOWN(gc_turnleft);
-	
+
 	straferkey = PLAYER1INPUTDOWN(gc_straferight);
 	strafelkey = PLAYER1INPUTDOWN(gc_strafeleft);
 	movefkey = PLAYER1INPUTDOWN(gc_forward);
 	movebkey = PLAYER1INPUTDOWN(gc_backward);
-	
+
 	mouseaiming = (PLAYER1INPUTDOWN(gc_mouseaiming)) ^ cv_alwaysfreelook.value;
 	analogjoystickmove = cv_usejoystick.value && !Joystick.bGamepadStyle;
 	gamepadjoystickmove = cv_usejoystick.value && Joystick.bGamepadStyle;
diff --git a/src/hu_stuff.c b/src/hu_stuff.c
index cd57c7d84028b444b6f9766042da58828539aa23..28b20f61e287d6826ea2680d135cbcef154f726c 100644
--- a/src/hu_stuff.c
+++ b/src/hu_stuff.c
@@ -994,12 +994,12 @@ static void HU_DrawCEcho(void)
 static void HU_drawGametype(void)
 {
 	const char *strvalue = NULL;
-	
+
 	if (gametype < 0 || gametype >= NUMGAMETYPES)
 		return; // not a valid gametype???
 
 	strvalue = Gametype_Names[gametype];
-		
+
 	if (splitscreen)
 		V_DrawString(4, 184, 0, strvalue);
 	else
diff --git a/src/p_enemy.c b/src/p_enemy.c
index 11e043be12edcc01c39c7a09376f6530f0a68f4c..9acc8430ec991881b102a173d4f08d3edd05f82f 100644
--- a/src/p_enemy.c
+++ b/src/p_enemy.c
@@ -10557,36 +10557,36 @@ void A_Boss5Jump(mobj_t *actor)
 	angle_t theta; // Angle of attack
 	// INT32 locvar1 = var1;
 	// INT32 locvar2 = var2;
- 
+
 #ifdef HAVE_BLUA
 	if (LUA_CallAction("A_Boss5Jump", actor))
 		return;
 #endif
- 
+
 	if (!actor->tracer)
 		return; // Don't even bother if we've got nothing to aim at.
- 
+
 	// Look up actor's current gravity situation
 	if (actor->subsector->sector->gravity)
 		g = FixedMul(gravity,(FixedDiv(*actor->subsector->sector->gravity>>FRACBITS, 1000)));
 	else
 		g = gravity;
- 
+
 	// Look up distance between actor and its tracer
 	x = P_AproxDistance(actor->tracer->x - actor->x, actor->tracer->y - actor->y);
 	// Look up height difference between actor and its tracer
 	y = actor->tracer->z - actor->z;
- 
+
 	// Get x^2 + y^2. Have to do it in a roundabout manner, because this overflows fixed_t way too easily otherwise.
 	x_int = x>>FRACBITS;
 	y_int = y>>FRACBITS;
 	intHypotenuse = (x_int*x_int) + (y_int*y_int);
 	fixedHypotenuse = FixedSqrt(intHypotenuse) *256;
- 
+
 	// a = g(y+/-sqrt(x^2+y^2)). a1 can be +, a2 can be -.
 	a1 = FixedMul(g,y+fixedHypotenuse);
 	a2 = FixedMul(g,y-fixedHypotenuse);
- 
+
 	// Determine which one isn't actually an imaginary number (or the smaller of the two, if both are real), and use that for v.
 	if (a1 < 0 || a2 < 0)
 	{
@@ -10608,7 +10608,7 @@ void A_Boss5Jump(mobj_t *actor)
 	// We can cut the "+/- sqrt" part out entirely, since v was calculated specifically for it to equal zero. So:
 	//theta = tantoangle[FixedDiv(aToUse,FixedMul(g,x)) >> DBITS];
 	theta = tantoangle[SlopeDiv(aToUse,FixedMul(g,x))];
- 
+
 	// Okay, complicated math done. Let's make this object jump already.
 	A_FaceTracer(actor);
 
diff --git a/src/p_spec.c b/src/p_spec.c
index 803c1ab86958e8c8cb852f1262344eeb7a1de9a7..dbee873ec5005be318bce9c342dba101e1ad7f8c 100644
--- a/src/p_spec.c
+++ b/src/p_spec.c
@@ -145,7 +145,7 @@ void P_InitPicAnims(void)
 	size_t i;
 
 	I_Assert(animdefs == NULL);
-	
+
 	maxanims = 0;
 
 	for (w = numwadfiles-1; w >= 0; w--)
@@ -161,7 +161,7 @@ void P_InitPicAnims(void)
 			animdefsLumpNum = W_CheckNumForNamePwad("ANIMDEFS", (UINT16)w, animdefsLumpNum + 1);
 		}
 	}
-	
+
 	// Define the last one
 	animdefs[maxanims].istexture = -1;
 	strncpy(animdefs[maxanims].endname, "", 9);
diff --git a/src/r_data.c b/src/r_data.c
index 1a6162dc259f7f89b2dbe36db54d5eeb1c11fbbc..c4209fad609299fa9bebaee3db530c23e18470d8 100644
--- a/src/r_data.c
+++ b/src/r_data.c
@@ -1196,7 +1196,7 @@ lumpnum_t R_GetFlatNumForName(const char *name)
 	// Scan wad files backwards so patched flats take preference.
 	for (i = numwadfiles - 1; i >= 0; i--)
 	{
-		
+
 		if (wadfiles[i]->type == RET_PK3)
 		{
 			start = W_CheckNumForFolderStartPK3("Flats/", i, 0);
diff --git a/src/r_main.c b/src/r_main.c
index c5f64c1e96f9b614d77b938d7fb431ad010ab2bd..9d0a8fe6059d5f3c73101849b59afa551a0f0828 100644
--- a/src/r_main.c
+++ b/src/r_main.c
@@ -1311,7 +1311,7 @@ void R_RegisterEngineStuff(void)
 	CV_RegisterVar(&cv_translucenthud);
 
 	CV_RegisterVar(&cv_maxportals);
-	
+
 	CV_RegisterVar(&cv_movebob);
 
 #ifdef HWRENDER
diff --git a/src/w_wad.c b/src/w_wad.c
index c8701f98f2b94ec4925ddd91b0b6118e61e97109..75bf40983831d655ad0317aa908b72b2bc23f06c 100644
--- a/src/w_wad.c
+++ b/src/w_wad.c
@@ -617,7 +617,7 @@ UINT16 W_InitFile(const char *filename)
 		lumpinfo_t *lump_p;
 		filelump_t *fileinfo;
 		void *fileinfov;
-		
+
 		type = RET_WAD;
 
 		// read the header
diff --git a/src/w_wad.h b/src/w_wad.h
index 14bf4d85fe2586475129e6c178f6aeb7daa8702b..f067258849de2234076483753f33860116d0db61 100644
--- a/src/w_wad.h
+++ b/src/w_wad.h
@@ -43,11 +43,11 @@ typedef struct
 } ATTRPACK filelump_t;
 
 // Available compression methods for lumps.
-typedef enum 
+typedef enum
 {
-	CM_NOCOMPRESSION, 
-	CM_DEFLATE, 
-	CM_LZF, 
+	CM_NOCOMPRESSION,
+	CM_DEFLATE,
+	CM_LZF,
 	CM_UNSUPPORTED
 } compmethod;