Skip to content

Commit

Permalink
added gfx_noclip to disable clipping
Browse files Browse the repository at this point in the history
  • Loading branch information
Alfred Eriksson committed Nov 17, 2008
1 parent c7e8e05 commit 47e50c5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/game/client/components/maplayers.cpp
Expand Up @@ -63,7 +63,7 @@ void MAPLAYERS::on_render()
{
MAPITEM_GROUP *group = layers_get_group(g);

if(group->version >= 2 && group->use_clipping)
if(!config.gfx_noclip && group->version >= 2 && group->use_clipping)
{
// set clipping
float points[4];
Expand Down Expand Up @@ -147,10 +147,11 @@ void MAPLAYERS::on_render()
//layershot_end();
}
}

gfx_clip_disable();
if(!config.gfx_noclip)
gfx_clip_disable();
}

gfx_clip_disable();
if(!config.gfx_noclip)
gfx_clip_disable();
}

2 changes: 2 additions & 0 deletions src/game/variables.hpp
Expand Up @@ -43,6 +43,8 @@ MACRO_CONFIG_INT(ui_color_sat, 70, 0, 255, CFGFLAG_CLIENT|CFGFLAG_SAVE, "Interfa
MACRO_CONFIG_INT(ui_color_lht, 175, 0, 255, CFGFLAG_CLIENT|CFGFLAG_SAVE, "Interface color lightness")
MACRO_CONFIG_INT(ui_color_alpha, 228, 0, 255, CFGFLAG_CLIENT|CFGFLAG_SAVE, "Interface alpha")

MACRO_CONFIG_INT(gfx_noclip, 0, 0, 1, CFGFLAG_CLIENT|CFGFLAG_SAVE, "Disable clipping")

/* server */
MACRO_CONFIG_INT(sv_warmup, 0, 0, 0, CFGFLAG_SERVER, "Number of seconds to do warpup before round starts")
MACRO_CONFIG_STR(sv_motd, 900, "", CFGFLAG_SERVER, "Message of the day to display for the clients")
Expand Down

0 comments on commit 47e50c5

Please sign in to comment.