diff src/r_render.cc @ 107:20aa5a515896

Reformat one line /* */ comments to //
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 06 Oct 2014 12:42:55 +0300
parents a68786b9c74b
children 51d5549a1bdc
line wrap: on
line diff
--- a/src/r_render.cc	Mon Oct 06 12:30:57 2014 +0300
+++ b/src/r_render.cc	Mon Oct 06 12:42:55 2014 +0300
@@ -169,7 +169,7 @@
     // heights for the surface (h1 is above h2).
 
     Img *img;
-    img_pixel_t col;                /* used if img is zero */
+    img_pixel_t col;                // used if img is zero
 
     enum
     {
@@ -178,7 +178,7 @@
     };
     int y_clip;
 
-    /* CTor */
+    // CTor
 
       DrawSurf()
     {
@@ -252,7 +252,7 @@
     int oy1, oy2;
     // for sprites, the remembered open space to clip to
 
-    /* surfaces */
+    // surfaces
 
     DrawSurf ceil;
     DrawSurf upper;
@@ -261,7 +261,7 @@
 
     static const double IZ_EPSILON = 0.000001;
 
-    /* PREDICATES */
+    // PREDICATES
 
     struct MidDistCmp
     {
@@ -314,7 +314,7 @@
         }
     };
 
-    /* methods */
+    // methods
 
     void ComputeWallSurface()
     {
@@ -361,7 +361,7 @@
 
         if (!back)
         {
-            /* ONE-sided line */
+            // ONE-sided line
 
             lower.kind = DrawSurf::K_TEXTURE;
             lower.h1 = front->ceilh;
@@ -377,7 +377,7 @@
         }
         else
         {
-            /* TWO-sided line */
+            // TWO-sided line
 
             if (back->ceilh < front->ceilh && !sky_upper)
             {
@@ -846,13 +846,13 @@
         int tw = surf.img->width();
         int th = surf.img->height();
 
-        /* compute texture X coord */
+        // compute texture X coord
 
         int tx = int (dw->t_dist - tan(dw->cur_ang - dw->normal) * dw->dist);
 
         tx = (dw->sd->xoff + tx) & (tw - 1);
 
-        /* compute texture Y coords */
+        // compute texture Y coords
 
         float base_h = surf.tex_h + dw->sd->yoff;
 
@@ -905,7 +905,7 @@
         if (y1 > y2)
             return;
 
-        /* clip the open region */
+        // clip the open region
 
         if (surf.y_clip & DrawSurf::SOLID_ABOVE)
             if (y2 > open_y1)
@@ -915,7 +915,7 @@
             if (y1 < open_y2)
                 open_y2 = y1;
 
-        /* fill pixels */
+        // fill pixels
 
         if (!surf.img)
         {
@@ -948,7 +948,7 @@
         if (y1 > y2)
             return;
 
-        /* fill pixels */
+        // fill pixels
 
         img_pixel_t *buf = view.screen->wbuf();
         img_pixel_t *wbuf = dw->ceil.img->wbuf();
@@ -1169,7 +1169,7 @@
         view.SetAngle(player->angle * ONEPI / 180.0);
     }
 
-/* create image */
+// create image
 
     view.sw = 640;
     view.sh = 400;
@@ -1183,11 +1183,11 @@
 
     bool Redraw = true;
 
-/* input loop */
+// input loop
 
     for (;;)
     {
-        /* render image */
+        // render image
 
         if (Redraw)
         {
@@ -1203,7 +1203,7 @@
             Redraw = false;
         }
 
-        /* handle keypress */
+        // handle keypress
 
         int key = get_key();
 
@@ -1276,7 +1276,7 @@
         }
     }
 
-/* all done */
+// all done
 
     delete view.screen;
     view.screen = 0;