diff --git a/src/d_main.c b/src/d_main.c
index 7694f66834f64e2de5c30ad1885bd5d4f58d9fbf..3dbcf5bf740eb00ff9418bf3b27da38a69ae8ceb 100644
--- a/src/d_main.c
+++ b/src/d_main.c
@@ -483,23 +483,21 @@ static void D_Display(void)
 		if (rendermode != render_none)
 		{
 			// miru: we can use the mapheaderinfo to change the forced wipe the instant the map loads
-            if (!mapheaderinfo[gamemap-1]->postlevelwipe)
-            {
-                F_WipeEndScreen();
-                F_RunWipe(wipedefs[wipedefindex], gamestate != GS_TIMEATTACK);
-            }
-            else
-            {
-                if (mapheaderinfo[gamemap-1]->postlevelwipe < 100)
-                {
-                    F_WipeStartScreen();
-                    V_DrawFill(0, 0, BASEVIDWIDTH, BASEVIDHEIGHT, mapheaderinfo[gamemap-1]->wipecolor);
-                    F_WipeEndScreen();
-                    F_RunWipe(mapheaderinfo[gamemap-1]->postlevelwipe,  gamestate != GS_TIMEATTACK);
-                }
-            }
-            //F_WipeEndScreen();
-            //F_RunWipe(wipedefs[wipedefindex], gamestate != GS_TIMEATTACK);
+			if (!mapheaderinfo[gamemap-1]->postlevelwipe)
+			{
+				F_WipeEndScreen();
+				F_RunWipe(wipedefs[wipedefindex], gamestate != GS_TIMEATTACK);
+			}
+			else
+			{
+				if (mapheaderinfo[gamemap-1]->postlevelwipe < 100)
+				{
+					F_WipeStartScreen();
+					V_DrawFill(0, 0, BASEVIDWIDTH, BASEVIDHEIGHT, mapheaderinfo[gamemap-1]->wipecolor);
+					F_WipeEndScreen();
+					F_RunWipe(mapheaderinfo[gamemap-1]->postlevelwipe,  gamestate != GS_TIMEATTACK);
+				}
+			}
 		}
 	}
 
diff --git a/src/doomstat.h b/src/doomstat.h
index f5bbb692fef3015ab145dd27d383fbe3f47ea00b..e8b59109cf5831e3402198ae12e92493ea96c9ee 100644
--- a/src/doomstat.h
+++ b/src/doomstat.h
@@ -248,10 +248,10 @@ typedef struct
 	UINT8 numGradedMares;   ///< Internal. For grade support.
 	nightsgrades_t *grades; ///< NiGHTS grades. Allocated dynamically for space reasons. Be careful.
 
-    // miru: to use custom mapheaderinfo options, we need to add them to the struct first
-    INT16 levelwipe;
-    INT16 postlevelwipe;
-    INT16 wipecolor;
+	// miru: to use custom mapheaderinfo options, we need to add them to the struct first
+	UINT8 levelwipe;
+	UINT8 postlevelwipe;
+	UINT8 wipecolor;
 
 	// Lua stuff.
 	// (This is not ifdeffed so the map header structure can stay identical, just in case.)
diff --git a/src/g_game.c b/src/g_game.c
index f8034bd241cd500b6cca614c8e3638dc137a77e8..b148d98014a149c67ae61bbe2fb973485d3598ae 100644
--- a/src/g_game.c
+++ b/src/g_game.c
@@ -1623,17 +1623,8 @@ void G_DoLoadLevel(boolean resetplayer)
 
 	levelstarttic = gametic; // for time calculation
 
-    // miru: postlevelwipe - just in case
-    if (!mapheaderinfo[gamemap-1]->postlevelwipe)
-    {
-        if (wipegamestate == GS_LEVEL)
-            wipegamestate = -1; // force a wipe
-    }
-    else
-    {
-        if (wipegamestate == GS_LEVEL)
-            wipegamestate = -1; // force a wipe
-    }
+	if (wipegamestate == GS_LEVEL)
+		wipegamestate = -1; // force a wipe
 
 	if (gamestate == GS_INTERMISSION)
 		Y_EndIntermission();
diff --git a/src/p_setup.c b/src/p_setup.c
index f8edbd74b52a6f0fd5ee77b9c453a3ff88f7d045..4193f45ed84538d34c077521b1607be03b4adffa 100644
--- a/src/p_setup.c
+++ b/src/p_setup.c
@@ -229,7 +229,7 @@ static void P_ClearSingleMapHeaderInfo(INT16 i)
 	mapheaderinfo[num]->levelwipe = 0;
 	DEH_WriteUndoline("POSTLEVELWIPE", va("%d", mapheaderinfo[num]->postlevelwipe), UNDO_NONE);
 	mapheaderinfo[num]->postlevelwipe = 0;
-    DEH_WriteUndoline("WIPECOLOR", va("%d", mapheaderinfo[num]->wipecolor), UNDO_NONE);
+	DEH_WriteUndoline("WIPECOLOR", va("%d", mapheaderinfo[num]->wipecolor), UNDO_NONE);
 	mapheaderinfo[num]->wipecolor = 31;
 
 	// TODO grades support for delfile (pfft yeah right)