From 76816f7da8ac1ffc2228ccef7d8eea256b0b6a69 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Fri, 27 Aug 2010 17:49:27 +0000 Subject: [PATCH] - disable check for hidden sectors because it does more harm than good. - don't draw a textured automap in overlay mode. SVN r2614 (trunk) --- src/am_map.cpp | 2 +- src/p_glnodes.cpp | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/am_map.cpp b/src/am_map.cpp index 63d328c647..fd3f4373fc 100644 --- a/src/am_map.cpp +++ b/src/am_map.cpp @@ -2353,7 +2353,7 @@ void AM_Drawer () } AM_activateNewScale(); - if (am_textured && hasglnodes && textured) + if (am_textured && hasglnodes && textured && !viewactive) AM_drawSubsectors(); if (grid) diff --git a/src/p_glnodes.cpp b/src/p_glnodes.cpp index 426552c37d..f08ef55ed6 100644 --- a/src/p_glnodes.cpp +++ b/src/p_glnodes.cpp @@ -1387,6 +1387,8 @@ void P_SetRenderSector() TArray undetermined; subsector_t * ss; +#if 0 // doesn't work as expected :( + // hide all sectors on textured automap that only have hidden lines. bool *hidesec = new bool[numsectors]; for(i = 0; i < numsectors; i++) @@ -1409,6 +1411,7 @@ void P_SetRenderSector() if (hidesec[i]) sectors[i].MoreFlags |= SECF_HIDDEN; } delete [] hidesec; +#endif // Check for incorrect partner seg info so that the following code does not crash. for(i=0;i