diff options
author | Simon Howard | 2005-08-04 18:42:15 +0000 |
---|---|---|
committer | Simon Howard | 2005-08-04 18:42:15 +0000 |
commit | 3aeb98b92575dccb70df15c393c95a72891ce205 (patch) | |
tree | 63720b4d6abb9f71a603984ea3997554d0e9aa99 /src/r_segs.c | |
parent | b500013f80419217013ada4211662e9bea2702e4 (diff) | |
download | chocolate-doom-3aeb98b92575dccb70df15c393c95a72891ce205.tar.gz chocolate-doom-3aeb98b92575dccb70df15c393c95a72891ce205.tar.bz2 chocolate-doom-3aeb98b92575dccb70df15c393c95a72891ce205.zip |
Silence compiler warnings
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 37
Diffstat (limited to 'src/r_segs.c')
-rw-r--r-- | src/r_segs.c | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/src/r_segs.c b/src/r_segs.c index 37acec22..d9e035bb 100644 --- a/src/r_segs.c +++ b/src/r_segs.c @@ -1,7 +1,7 @@ // Emacs style mode select -*- C++ -*- //----------------------------------------------------------------------------- // -// $Id: r_segs.c 19 2005-07-23 19:17:11Z fraggle $ +// $Id: r_segs.c 37 2005-08-04 18:42:15Z fraggle $ // // Copyright(C) 1993-1996 Id Software, Inc. // Copyright(C) 2005 Simon Howard @@ -22,6 +22,9 @@ // 02111-1307, USA. // // $Log$ +// Revision 1.4 2005/08/04 18:42:15 fraggle +// Silence compiler warnings +// // Revision 1.3 2005/07/23 19:17:11 fraggle // Use ANSI-standard limit constants. Remove LINUX define. // @@ -39,7 +42,7 @@ static const char -rcsid[] = "$Id: r_segs.c 19 2005-07-23 19:17:11Z fraggle $"; +rcsid[] = "$Id: r_segs.c 37 2005-08-04 18:42:15Z fraggle $"; @@ -230,8 +233,6 @@ void R_RenderSegLoop (void) int top; int bottom; - //texturecolumn = 0; // shut up compiler warning - for ( ; rw_x < rw_stopx ; rw_x++) { // mark floor / ceiling areas @@ -291,6 +292,12 @@ void R_RenderSegLoop (void) dc_x = rw_x; dc_iscale = 0xffffffffu / (unsigned)rw_scale; } + else + { + // purely to shut up the compiler + + texturecolumn = 0; + } // draw the wall tiers if (midtexture) |