Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Mar 5, 2017
1 parent b3eb0e2 commit 0339cdd
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions doomsday/apps/plugins/common/src/r_common.c
Expand Up @@ -316,25 +316,25 @@ static void rendHUD(int player, const RectRaw* portGeometry)
void G_DrawViewPort(int port, RectRaw const *portGeometry,
RectRaw const *windowGeometry, int player, int layer)
{
switch(G_GameState())
switch (G_GameState())
{
case GS_MAP: {
player_t* plr = players + player;
dd_bool isAutomapObscuring = ST_AutomapObscures2(player, windowGeometry);

if(IS_CLIENT && (!Get(DD_GAME_READY) || !Get(DD_GOTFRAME)))
if (IS_CLIENT && (!Get(DD_GAME_READY) || !Get(DD_GOTFRAME)))
return;

if(Con_GetInteger("rend-vr-mode") == 9) // Oculus Rift mode
if (Con_GetInteger("rend-vr-mode") == 9) // Oculus Rift mode
{
// Automap will not cover the full view.
isAutomapObscuring = false;
}

switch(layer)
switch (layer)
{
case 0: // Primary layer (3D view).
if(!isAutomapObscuring)
if (!isAutomapObscuring)
{
G_RendPlayerView(player);
#if !defined(__JDOOM__) && !defined(__JHEXEN__)
Expand All @@ -345,7 +345,7 @@ void G_DrawViewPort(int port, RectRaw const *portGeometry,

default: // HUD layer.
// Crosshair.
if(!isAutomapObscuring && !(P_MobjIsCamera(plr->plr->mo) && Get(DD_PLAYBACK))) // $democam
if (!isAutomapObscuring && !(P_MobjIsCamera(plr->plr->mo) && Get(DD_PLAYBACK))) // $democam
{
X_Drawer(player);
}
Expand All @@ -357,7 +357,7 @@ void G_DrawViewPort(int port, RectRaw const *portGeometry,
break; }

case GS_STARTUP:
if(layer == 0)
if (layer == 0)
{
DGL_DrawRectf2Color(0, 0, portGeometry->size.width, portGeometry->size.height,
0, 0, 0, 1);
Expand Down

0 comments on commit 0339cdd

Please sign in to comment.